/* ═══════════════════════════════════════════════
   Mana Kottalapalli — Review Page
═══════════════════════════════════════════════ */

:root {
    --g50: #f0faf0;
    --g100: #d6f0d6;
    --g200: #aad8aa;
    --g300: #72bc72;
    --g400: #3d9e3d;
    --g500: #2d8a2d;
    --g600: #1f6e1f;
    --g700: #155015;
    --g800: #0d360d;

    --ink: #0e1a0e;
    --ink2: #2c3e2c;
    --ink3: #4a604a;
    --muted: #7a8f7a;
    --rule: #e0ece0;
    --bg: #f7fbf7;
    --white: #ffffff;

    --fb: 'DM Sans', sans-serif;
    --fh: 'Sora', sans-serif;
    --fm: 'Roboto Mono', monospace;
    --fk: 'Caveat', cursive;

    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 16px;

    --shadow-card: 0 1px 4px rgba(0, 0, 0, .06), 0 4px 20px rgba(45, 138, 45, .07);
    --shadow-btn: 0 3px 14px rgba(45, 138, 45, .30);

    --ease: cubic-bezier(.4, 0, .2, 1);
    --nav-h: 56px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--fb);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 3px;
}

::-webkit-scrollbar-track {
    background: var(--g50);
}

::-webkit-scrollbar-thumb {
    background: var(--g300);
    border-radius: 3px;
}

/* ─────────────────────── TOAST ─────────────────────── */
.toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--g500);
    color: #fff;
    font-family: var(--fb);
    font-size: .85rem;
    font-weight: 600;
    padding: 13px 1.25rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-110%);
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 4px 18px rgba(45, 138, 45, .30);
}

.toast.show {
    transform: translateY(0);
}

.toast-icon {
    width: 22px;
    height: 22px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ─────────────────────── NAV ─────────────────────── */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 900;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem;
    background: rgba(247, 251, 247, .95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 1px 10px rgba(45, 138, 45, .06);
}

.nav-brand {
    font-family: var(--fk);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--g600);
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink3);
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: 100px;
    padding: 7px 14px;
    transition: background .18s, border-color .18s, color .18s;
}

.nav-back:hover {
    background: var(--g50);
    border-color: var(--g200);
    color: var(--g600);
}

/* ─────────────────────── HERO ─────────────────────── */
.page-hero {
    padding-top: var(--nav-h);
    background: linear-gradient(145deg, var(--g800) 0%, var(--g700) 50%, var(--g600) 100%);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 3rem 1.25rem 3.25rem;
    text-align: center;
}

.hero-eyebrow {
    display: inline-block;
    font-family: var(--fm);
    font-size: .62rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--g300);
    margin-bottom: .9rem;
}

.hero-heading {
    font-family: var(--fh);
    font-size: clamp(1.4rem, 4.5vw, 2.6rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .75rem;
}

.hero-sub {
    font-size: .82rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.75;
    max-width: 460px;
    margin: 0 auto .9rem;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
}

.badge {
    font-size: .65rem;
    font-weight: 600;
    color: var(--g200);
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(114, 188, 114, .25);
    border-radius: 100px;
    padding: 5px 13px;
}

/* ─────────────────────── PAGE LAYOUT ─────────────────────── */
.page-main {
    max-width: 1080px;
    margin: 0 auto;
    padding: 2rem 1.1rem 4rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

/* ─────────────────────── FORM SECTION ─────────────────────── */
.form-section {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-l);
    padding: 1.75rem 1.25rem;
    box-shadow: var(--shadow-card);
}

.section-head {
    margin-bottom: 1.5rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--rule);
}

.section-title {
    font-family: var(--fh);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .25rem;
}

.section-desc {
    font-size: .83rem;
    color: var(--muted);
}

/* ── FORM GRID ── */
.review-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.1rem;
}

@media (min-width: 640px) {
    .review-form {
        grid-template-columns: 1fr 1fr;
    }

    .review-form .full {
        grid-column: 1 / -1;
    }
}

/* ── FIELDS ── */
.field-group {
    display: flex;
    flex-direction: column;
    gap: .38rem;
}

.field-label {
    font-size: .8rem;
    font-weight: 600;
    color: var(--ink2);
    display: flex;
    align-items: center;
    gap: 5px;
}

.req {
    color: var(--g500);
    font-weight: 700;
    line-height: 1;
}

/* inputs */
.field-group input[type="text"],
.field-group input[type="email"],
.field-group textarea {
    width: 100%;
    font-family: var(--fb);
    font-size: 14px;
    color: var(--ink);
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-s);
    padding: 11px 13px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
    -webkit-appearance: none;
    appearance: none;
}

.field-group textarea {
    resize: vertical;
    min-height: 130px;
    line-height: 1.6;
}

.field-group input::placeholder,
.field-group textarea::placeholder {
    color: var(--muted);
    font-size: .85rem;
}

.field-group input:focus,
.field-group textarea:focus {
    border-color: var(--g400);
    box-shadow: 0 0 0 3px rgba(61, 158, 61, .1);
}

.field-group input.input-error,
.field-group textarea.input-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, .09);
}

.field-group input.input-valid,
.field-group textarea.input-valid {
    border-color: var(--g400);
}

/* field error */
.field-error {
    display: none;
    font-size: .74rem;
    color: #c0392b;
    animation: errIn .18s ease;
}

.field-error.visible {
    display: block;
}

@keyframes errIn {
    from {
        opacity: 0;
        transform: translateY(-3px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* ─────────────────────── EMOJI RATING ─────────────────────── */
.emoji-rating-wrap {
    display: flex;
    gap: .55rem;
    flex-wrap: wrap;
}

.emoji-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .3rem;
    background: var(--white);
    border: 1.5px solid var(--rule);
    border-radius: var(--radius-m);
    padding: .7rem .5rem .6rem;
    cursor: pointer;
    min-width: 58px;
    flex: 1;
    transition: background .18s, border-color .18s, transform .14s, box-shadow .18s;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.emoji-face {
    font-size: 1.75rem;
    line-height: 1;
    transition: transform .2s var(--ease);
    display: block;
}

.emoji-label {
    font-family: var(--fm);
    font-size: .58rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: .02em;
    white-space: nowrap;
    transition: color .18s;
}

/* hover */
.emoji-btn:hover {
    background: var(--g50);
    border-color: var(--g200);
}

.emoji-btn:hover .emoji-face {
    transform: scale(1.18);
}

.emoji-btn:hover .emoji-label {
    color: var(--ink3);
}

/* active/selected */
.emoji-btn.selected {
    background: var(--g50);
    border-color: var(--g400);
    box-shadow: 0 0 0 3px rgba(61, 158, 61, .12);
}

.emoji-btn.selected .emoji-face {
    transform: scale(1.22);
}

.emoji-btn.selected .emoji-label {
    color: var(--g600);
    font-weight: 700;
}

.emoji-btn:active {
    transform: scale(.94);
}

/* ── SUBMIT BUTTON ── */
.submit-btn {
    width: 100%;
    padding: 13px 24px;
    background: var(--g500);
    color: #fff;
    font-family: var(--fh);
    font-size: .85rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-m);
    cursor: pointer;
    letter-spacing: .01em;
    box-shadow: var(--shadow-btn);
    transition: background .18s, transform .15s, box-shadow .18s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
}

.submit-btn:hover:not(:disabled) {
    background: var(--g600);
    transform: translateY(-1px);
    box-shadow: 0 5px 20px rgba(45, 138, 45, .38);
}

.submit-btn:active:not(:disabled) {
    transform: scale(.98);
}

.submit-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.btn-spinner {
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── SUCCESS ── */
.form-success {
    display: none;
    align-items: flex-start;
    gap: .85rem;
    background: var(--g50);
    border: 1px solid var(--g200);
    border-left: 3px solid var(--g500);
    border-radius: var(--radius-m);
    padding: 1rem 1.15rem;
    animation: slideUp .3s ease both;
}

.form-success.visible {
    display: flex;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.success-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border-radius: 50%;
    background: var(--g500);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.success-content {
    display: flex;
    flex-direction: column;
}

.success-head {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.success-title {
    font-family: var(--fh);
    font-size: .9rem;
    font-weight: 700;
    color: var(--g700);
    line-height: 1.2;
}

.success-sub {
    font-size: .8rem;
    color: var(--ink3);
    line-height: 1.6;
    margin: .3rem 0 0;
}

/* ─────────────────────── SIDEBAR ─────────────────────── */
.page-aside {
    display: flex;
    flex-direction: column;
    gap: .85rem;
}

.aside-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-l);
    padding: 1.15rem 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
    box-shadow: var(--shadow-card);
    transition: border-color .2s;
}

.aside-card:hover {
    border-color: var(--g200);
}

.aside-icon {
    font-size: 1.3rem;
    line-height: 1;
    margin-top: 1px;
    flex-shrink: 0;
}

.aside-title {
    font-family: var(--fh);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .3rem;
}

.aside-body {
    font-size: .8rem;
    color: var(--ink3);
    line-height: 1.7;
}

/* contact card */
.contact-card {
    background: var(--white);
    border: 1px solid var(--rule);
    border-radius: var(--radius-l);
    padding: 1.1rem 1.1rem;
    box-shadow: var(--shadow-card);
}

.contact-card-label {
    font-family: var(--fm);
    font-size: .62rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .65rem;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink3);
    padding: .5rem 0;
    border-bottom: 1px solid var(--rule);
    transition: color .15s;
}

.contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.contact-row:first-of-type {
    padding-top: 0;
}

.contact-row:hover {
    color: var(--g600);
}

.contact-row-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
    background: var(--g50);
    border: 1px solid var(--g100);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--g500);
}

/* ─────────────────────── FOOTER ─────────────────────── */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--rule);
    padding: 2rem 1.25rem;
    text-align: center;
}

.ft-brand {
    font-family: var(--fk);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--g600);
    margin-bottom: .6rem;
}

.ft-rule {
    width: 28px;
    height: 1.5px;
    background: var(--rule);
    margin: .7rem auto;
}

.ft-line {
    font-size: .74rem;
    color: var(--muted);
    line-height: 1.8;
}

/* ─────────────────────── RESPONSIVE ─────────────────────── */
@media (min-width: 860px) {
    :root {
        --nav-h: 60px;
    }

    #nav {
        padding: 0 1.75rem;
    }

    .nav-brand {
        font-size: 1.35rem;
    }

    .hero-inner {
        padding: 3.5rem 2rem;
    }

    .page-main {
        grid-template-columns: 1fr 300px;
        gap: 2.25rem;
        padding: 2.5rem 1.5rem 5rem;
    }

    .form-section {
        padding: 2rem 1.75rem;
    }

    .page-aside {
        position: sticky;
        top: 76px;
    }
}

@media (min-width: 1024px) {
    .page-main {
        grid-template-columns: 1fr 310px;
        gap: 2.5rem;
    }
}

/* small screens: emoji buttons slightly smaller */
@media (max-width: 380px) {
    .emoji-btn {
        min-width: 50px;
        padding: .6rem .35rem .5rem;
    }

    .emoji-face {
        font-size: 1.5rem;
    }

    .emoji-label {
        font-size: .52rem;
    }
}

:focus-visible {
    outline: 2px solid var(--g400);
    outline-offset: 2px;
    border-radius: 4px;
}