/* ═══════════════════════════════════════════════
   Mana Kottalapalli — Share 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;
}

/* ─────────────────────── 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;
}

/* subtle dot pattern overlay */
.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 ── */
.share-form {
    display: grid;
    grid-template-columns: 1fr;
    /* mobile: 1 col */
    gap: 1.1rem;
}

/* desktop: 2-col */
@media (min-width: 640px) {
    .share-form {
        grid-template-columns: 1fr 1fr;
    }

    .share-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;
    flex-wrap: wrap;
}

.req {
    color: var(--g500);
    font-weight: 700;
    line-height: 1;
}

.opt-tag {
    font-family: var(--fm);
    font-size: .58rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--g50);
    border: 1px solid var(--g100);
    border-radius: 100px;
    padding: 2px 7px;
}

.field-note {
    font-size: .72rem;
    font-weight: 400;
    color: var(--muted);
    font-family: var(--fb);
}

/* inputs — 16px prevents iOS zoom */
.field-group input[type="text"],
.field-group input[type="email"],
.field-group input[type="tel"],
.field-group textarea,
.select-wrap select {
    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: .9rem;
}

.field-group input:focus,
.field-group textarea:focus,
.select-wrap select: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,
.select-wrap select.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,
.select-wrap select.input-valid {
    border-color: var(--g400);
}

/* select */
.select-wrap {
    position: relative;
}

.select-wrap select {
    padding-right: 36px;
    cursor: pointer;
}

.select-caret {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

/* 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;
    }
}

/* ── UPLOAD ZONE ── */
.upload-zone {
    position: relative;
    border: 2px dashed var(--g200);
    border-radius: var(--radius-m);
    background: var(--g50);
    cursor: pointer;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.upload-zone input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    font-size: 0;
}

.upload-body {
    padding: 1.75rem 1.25rem;
    text-align: center;
    pointer-events: none;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--g400);
    background: rgba(61, 158, 61, .04);
    box-shadow: 0 0 0 3px rgba(61, 158, 61, .08);
}

.upload-icon-box {
    width: 42px;
    height: 42px;
    background: var(--white);
    border: 1.5px solid var(--g200);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto .65rem;
    color: var(--g500);
}

.upload-label {
    font-size: .87rem;
    font-weight: 600;
    color: var(--ink2);
    margin-bottom: .22rem;
}

.upload-sub {
    font-weight: 400;
    color: var(--muted);
}

.upload-formats {
    font-family: var(--fm);
    font-size: .62rem;
    color: var(--muted);
    letter-spacing: .05em;
}

/* photo preview */
.photo-preview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: .45rem;
    margin-top: .6rem;
}

.photo-thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    border: 1.5px solid var(--g200);
    background: var(--g50);
    animation: thumbIn .25s ease both;
}

@keyframes thumbIn {
    from {
        opacity: 0;
        transform: scale(.85);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-thumb .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, .6);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: .6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: background .15s;
}

.photo-thumb .remove-btn:hover {
    background: rgba(0, 0, 0, .8);
}

/* progress */
.upload-progress-wrap {
    background: var(--g50);
    border: 1px solid var(--g100);
    border-radius: var(--radius-s);
    padding: .85rem 1rem;
}

.upload-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: .78rem;
    color: var(--ink3);
    font-weight: 500;
    margin-bottom: .5rem;
}

.progress-track {
    height: 5px;
    background: var(--g100);
    border-radius: 100px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--g500), var(--g300));
    border-radius: 100px;
    width: 0%;
    transition: width .4s var(--ease);
}

/* ── 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: center;
    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: 34px;
    height: 34px;
    min-width: 34px;
    background: var(--g500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.success-title {
    font-family: var(--fh);
    font-size: .9rem;
    font-weight: 700;
    color: var(--g700);
    margin-bottom: .15rem;
}

.success-sub {
    font-size: .8rem;
    color: var(--ink3);
    line-height: 1.6;
} */
/* ── 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;
}

.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 ─────────────────────── */

/* Tablet / desktop */
@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;
    }
}

/* focus ring */
:focus-visible {
    outline: 2px solid var(--g400);
    outline-offset: 2px;
    border-radius: 4px;
}

#shareType {
    font-size: 13px;
}

#shareType option {
    font-size: 13px;
}