/* =================================================================== */
/* == MEMORYCHAIN — RETRIEVE ORDER PAGE STYLES                      == */
/* == Phase B: retrieve.css                                         == */
/* =================================================================== */


/* =================================================================== */
/* == SECTION B-CSS.1: DESIGN TOKENS — Identical to landing page   == */
/* =================================================================== */
:root {
    /* Brand colors — exact match */
    --rose:         #B76E79;
    --rose-light:   #D4959E;
    --rose-deep:    #9A5562;
    --plum:         #6B4C5E;
    --plum-light:   #8B6478;
    --plum-deep:    #4A3040;
    --cream:        #FAF6F0;
    --cream-warm:   #F5EDE3;
    --gold-light:   #E8D5A8;
    --white:        #FFFFFF;
    --text-dark:    #2C2C2C;
    --text-mid:     #4A4A4A;
    --text-light:   #6B6B6B;
    --text-faint:   #9B9B9B;
    --border:       #E8E0D5;
    --border-light: #F0E8DF;
    --shadow-rose:  rgba(183, 110, 121, 0.15);
    --shadow-rose-strong: rgba(183, 110, 121, 0.28);
    --shadow-dark:  rgba(44, 44, 44, 0.08);

    /* Typography */
    --font-display:  'Playfair Display', Georgia, serif;
    --font-dramatic: 'Cormorant Garamond', Georgia, serif;
    --font-body:     'Inter', system-ui, sans-serif;
    --font-mono:     'JetBrains Mono', 'Courier New', monospace;

    /* Spacing */
    --space-xs:  8px;
    --space-sm:  16px;
    --space-md:  24px;
    --space-lg:  48px;
    --space-xl:  80px;

    /* Shape */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Motion */
    --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
    --duration:  0.35s;
}


/* =================================================================== */
/* == SECTION B-CSS.2: RESET & BASE                                 == */
/* =================================================================== */
*, *::before, *::after {
    margin: 0; padding: 0; box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }


/* =================================================================== */
/* == SECTION B-CSS.3: NAVBAR                                       == */
/* =================================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(250, 246, 240, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 0 var(--border-light), 0 4px 24px var(--shadow-dark);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 48px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--plum-deep);
    margin-right: auto;
    letter-spacing: -0.01em;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    transition: color var(--duration) var(--ease-out);
}

.nav-link:hover { color: var(--rose); }

.nav-cta {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, var(--rose), var(--plum));
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: all var(--duration) var(--ease-out);
    box-shadow: 0 4px 16px var(--shadow-rose);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--shadow-rose-strong);
}


/* =================================================================== */
/* == SECTION B-CSS.4: PAGE HERO                                    == */
/* =================================================================== */
.page-hero {
    background: linear-gradient(150deg,
        var(--plum-deep) 0%,
        var(--plum)      45%,
        var(--rose-deep) 100%
    );
    padding: 140px 48px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle radial glow — same as landing hero */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(183,110,121,0.2) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.page-eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: var(--space-sm);
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    color: var(--white);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
}

.page-subtitle {
    font-family: var(--font-dramatic);
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 300;
    color: rgba(255,255,255,0.75);
    line-height: 1.65;
}

/* Smooth curve into cream background */
.hero-curve {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 60px;
    line-height: 0;
}

.hero-curve svg {
    width: 100%;
    height: 100%;
    display: block;
}


/* =================================================================== */
/* == SECTION B-CSS.5: MAIN CONTENT GRID                            == */
/* =================================================================== */
.main-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 48px 100px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-rows: auto;
    gap: 32px;
    align-items: start;
}

/* Success card occupies same slot as form card */
.success-card {
    grid-column: 1;
}


/* =================================================================== */
/* == SECTION B-CSS.6: FORM CARD                                    == */
/* =================================================================== */
.form-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 8px 40px var(--shadow-dark);
    animation: cardFadeUp 0.6s var(--ease-out) both;
}

@keyframes cardFadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

.form-card-header {
    text-align: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--border-light);
}

.form-icon {
    font-size: 36px;
    margin-bottom: var(--space-sm);
    display: block;
}

.form-card-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 600;
    color: var(--plum-deep);
    margin-bottom: 8px;
}

.form-card-sub {
    font-size: 15px;
    color: var(--text-light);
}


/* =================================================================== */
/* == SECTION B-CSS.7: FORM FIELDS                                  == */
/* =================================================================== */
.retrieve-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.field-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.01em;
}

.field-required {
    color: var(--rose);
    margin-left: 2px;
}

.field-input-wrap {
    display: flex;
    align-items: center;
    background: var(--cream);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color var(--duration) var(--ease-out),
                box-shadow  var(--duration) var(--ease-out);
}

.field-input-wrap:focus-within {
    border-color: var(--rose);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(183, 110, 121, 0.1);
}

/* Error state */
.field-group.has-error .field-input-wrap {
    border-color: #D94A4A;
    box-shadow: 0 0 0 4px rgba(217, 74, 74, 0.08);
}

.field-prefix {
    padding: 0 12px 0 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-faint);
    user-select: none;
    border-right: 1px solid var(--border);
    line-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
}

.field-input {
    flex: 1;
    padding: 14px 16px;
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--text-dark);
    height: 52px;
}

/* Monospace for Memory ID */
.field-input--mono {
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.field-hint {
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.5;
}

.field-error {
    font-size: 12px;
    color: #D94A4A;
    font-weight: 500;
    min-height: 16px;
    display: none;
}

.field-group.has-error .field-error {
    display: block;
}

.global-error {
    font-size: 14px;
    color: #D94A4A;
    font-weight: 500;
    text-align: center;
    min-height: 20px;
    display: none;
    padding: 12px;
    background: rgba(217,74,74,0.06);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(217,74,74,0.2);
}

.global-error.visible {
    display: block;
}


/* =================================================================== */
/* == SECTION B-CSS.8: SUBMIT BUTTON                                == */
/* =================================================================== */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--plum) 100%);
    color: var(--white);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.02em;
    border-radius: 100px;
    box-shadow: 0 8px 28px var(--shadow-rose-strong);
    transition: transform var(--duration) var(--ease-out),
                box-shadow  var(--duration) var(--ease-out),
                opacity     var(--duration) var(--ease-out);
    margin-top: 8px;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px var(--shadow-rose-strong);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.submit-btn-icon {
    font-size: 18px;
    transition: transform var(--duration) var(--ease-out);
}

.submit-btn:hover:not(:disabled) .submit-btn-icon {
    transform: translateX(4px);
}

/* Loading state */
.submit-btn.loading .submit-btn-text::after {
    content: '...';
    animation: ellipsis 1.2s steps(4, end) infinite;
}

.submit-btn.loading .submit-btn-icon {
    display: none;
}

@keyframes ellipsis {
    0%, 100% { content: '.'; }
    33%       { content: '..'; }
    66%       { content: '...'; }
}


/* =================================================================== */
/* == SECTION B-CSS.9: SUCCESS CARD                                 == */
/* =================================================================== */
.success-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    box-shadow: 0 8px 40px var(--shadow-dark);
    text-align: center;
    animation: cardFadeUp 0.5s var(--ease-out) both;
}

.success-icon-wrap {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--rose), var(--plum));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    box-shadow: 0 8px 24px var(--shadow-rose-strong);
}

.success-icon {
    font-size: 28px;
    color: var(--white);
    font-weight: 700;
}

.success-title {
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--plum-deep);
    margin-bottom: var(--space-sm);
}

.success-body {
    font-size: 16px;
    color: var(--text-mid);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.success-detail {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    margin-bottom: var(--space-md);
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.8;
}

.success-note {
    font-size: 13px;
    color: var(--text-faint);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.success-home-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: var(--rose);
    border-bottom: 1px solid rgba(183,110,121,0.3);
    padding-bottom: 2px;
    transition: all var(--duration) var(--ease-out);
}

.success-home-link:hover {
    color: var(--plum);
    border-color: var(--plum);
}


/* =================================================================== */
/* == SECTION B-CSS.10: HELP PANEL (Right column)                   == */
/* =================================================================== */
.help-panel {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    animation: cardFadeUp 0.6s var(--ease-out) 0.15s both;
}

.help-card {
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    transition: border-color var(--duration) var(--ease-out),
                box-shadow  var(--duration) var(--ease-out);
}

.help-card:hover {
    border-color: var(--rose-light);
    box-shadow: 0 8px 32px var(--shadow-rose);
}

/* Featured WhatsApp card */
.help-card--featured {
    background: linear-gradient(160deg, var(--white) 0%, rgba(250,246,240,0.6) 100%);
    border-color: var(--rose-light);
    box-shadow: 0 4px 20px var(--shadow-rose);
}

.help-card-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 8px;
}

.help-card-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--plum-deep);
    margin-bottom: 10px;
}

.help-card-body {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-sm);
}

.help-card-footer {
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: var(--space-sm);
}

/* WhatsApp command block */
.whatsapp-command {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--plum-deep);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 8px;
}

.whatsapp-command code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--gold-light);
    letter-spacing: 0.06em;
}

.copy-btn {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    padding: 4px;
    border-radius: 4px;
    transition: all var(--duration);
}

.copy-btn:hover {
    color: var(--white);
    background: rgba(255,255,255,0.1);
}

.copy-btn.copied {
    color: #7BC67E;
}

/* WhatsApp button */
.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 20px;
    background: #25D366;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    border-radius: 100px;
    transition: all var(--duration) var(--ease-out);
    justify-content: center;
    box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}

.whatsapp-btn:hover {
    background: #1EBE58;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}

.whatsapp-icon {
    display: flex;
    align-items: center;
}

/* Help list */
.help-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: none;
}

.help-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.6;
}

.help-list-icon {
    font-size: 16px;
    flex-shrink: 0;
    margin-top: 1px;
}

.inline-code {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: var(--cream);
    border: 1px solid var(--border);
    padding: 1px 6px;
    border-radius: 4px;
    color: var(--plum);
    font-weight: 600;
}

/* Contact card */
.help-card--contact {
    background: var(--cream);
}

.contact-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rose);
    border-bottom: 1px solid rgba(183,110,121,0.3);
    padding-bottom: 2px;
    transition: all var(--duration);
}

.contact-link:hover {
    color: var(--plum);
    border-color: var(--plum);
}


/* =================================================================== */
/* == SECTION B-CSS.11: FOOTER                                      == */
/* =================================================================== */
.footer {
    background: var(--plum-deep);
    padding: var(--space-lg) 48px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.01em;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    transition: color var(--duration);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-copy {
    font-size: 12px;
    color: rgba(255,255,255,0.25);
}


/* =================================================================== */
/* == SECTION B-CSS.12: RESPONSIVE                                  == */
/* =================================================================== */
@media (max-width: 860px) {

    .content-grid {
        grid-template-columns: 1fr;
    }

    .success-card {
        grid-column: 1;
    }

    .main-content {
        padding: 48px 24px 80px;
    }

    .page-hero {
        padding: 120px 24px 80px;
    }

    .nav-inner {
        padding: 14px 24px;
    }

    .footer {
        padding: var(--space-lg) 24px;
    }

}

@media (max-width: 480px) {

    .form-card,
    .success-card {
        padding: var(--space-md);
    }

    .whatsapp-command {
        flex-wrap: wrap;
    }

    .footer-links {
        gap: 16px;
    }
}