:root {
    --gold: #C9A84C;
    --gold-light: #E8D48B;
    --gold-dark: #A07D2E;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --dark: #1A1611;
    --dark-soft: #2C2520;
    --dark-medium: #3D352E;
    --text: #4A423A;
    --text-light: #7A7068;
    --white: #FFFFFF;
    --green: #4A7C59;
    --green-light: #E8F5E9;
    --red: #C45B4A;
    --red-light: #FFF0EE;
    --shadow-sm: 0 2px 8px rgba(26,22,17,0.06);
    --shadow-md: 0 8px 30px rgba(26,22,17,0.1);
    --shadow-lg: 0 20px 60px rgba(26,22,17,0.12);
    --shadow-gold: 0 8px 30px rgba(201,168,76,0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'DM Sans', sans-serif;
    color: var(--text);
    background: var(--cream);
    overflow-x: hidden;
    line-height: 1.7;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ═══ NAVBAR ═══ */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%;
    z-index: 1000; padding: 14px 0;
    background: rgba(253,248,240,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(26,22,17,0.06);
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; }
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo-icon {
    width: 40px; height: 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; box-shadow: var(--shadow-gold);
}
.nav-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem; font-weight: 700; color: var(--dark);
}
.nav-logo-text span { color: var(--gold); }
.nav-back {
    display: inline-flex; align-items: center; gap: 8px;
    text-decoration: none; color: var(--text-light);
    font-size: 0.9rem; font-weight: 500; transition: color 0.3s;
}
.nav-back:hover { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-login {
    text-decoration: none; color: var(--text);
    font-size: 0.9rem; font-weight: 500; transition: color 0.3s;
}
.nav-login:hover { color: var(--gold); }

/* ═══ BURGER / MOBILE MENU (responsive header) ═══ */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}
.nav-burger span {
    width: 26px; height: 2.5px;
    background: var(--dark);
    border-radius: 3px;
    transition: all 0.3s;
}
.mobile-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background: rgba(253,248,240,0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 10001;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    text-decoration: none;
    color: var(--dark);
    transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu .mobile-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--shadow-gold);
}
.mobile-close {
    position: absolute;
    top: 24px; right: 24px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--dark);
}

/* ═══ PAGE LAYOUT ═══ */
.page-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    padding-top: 68px;
}

/* ═══ LEFT PANEL (Info) ═══ */
.info-panel {
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 60%, var(--dark-medium) 100%);
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.info-panel::before {
    content: '';
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at 1px 1px, rgba(201,168,76,0.05) 1px, transparent 0);
    background-size: 30px 30px;
}
.info-panel::after {
    content: '';
    position: absolute; bottom: -20%; right: -10%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(201,168,76,0.1), transparent 60%);
    border-radius: 50%;
}

.info-content { position: relative; z-index: 2; }

.info-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(201,168,76,0.1);
    border: 1px solid rgba(201,168,76,0.2);
    padding: 6px 16px; border-radius: 50px;
    font-size: 0.78rem; font-weight: 600;
    color: var(--gold-light); margin-bottom: 28px;
}

.info-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 18px;
}
.info-content h1 em {
    font-style: italic;
    color: var(--gold);
}
.info-content > p {
    font-size: 1rem;
    color: rgba(253,248,240,0.55);
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 440px;
}

.info-steps { display: flex; flex-direction: column; gap: 24px; margin-bottom: 40px; }
.info-step {
    display: flex; align-items: flex-start; gap: 16px;
}
.info-step-num {
    width: 40px; height: 40px; flex-shrink: 0;
    background: rgba(201,168,76,0.12);
    border: 1px solid rgba(201,168,76,0.2);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 1rem; font-weight: 700;
    color: var(--gold);
}
.info-step-text h4 {
    font-size: 0.95rem; font-weight: 600;
    color: var(--cream); margin-bottom: 2px;
}
.info-step-text p {
    font-size: 0.85rem;
    color: rgba(253,248,240,0.4);
    line-height: 1.5;
}

.info-trust {
    display: flex; gap: 28px; flex-wrap: wrap;
    padding-top: 32px;
    border-top: 1px solid rgba(253,248,240,0.06);
}
.info-trust-item {
    display: flex; align-items: center; gap: 8px;
    font-size: 0.82rem; color: rgba(253,248,240,0.45);
}
.info-trust-item .dot {
    width: 8px; height: 8px;
    background: var(--green);
    border-radius: 50%;
}

/* ═══ RIGHT PANEL (Form) ═══ */
.form-panel {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
    max-height: calc(100vh - 68px);
}

.form-header {
    margin-bottom: 32px;
}
.form-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 700;
    color: var(--dark); margin-bottom: 8px;
}
.form-header p {
    font-size: 0.95rem;
    color: var(--text-light);
}

/* ═══ STEPPER ═══ */
.stepper {
    display: flex; align-items: center;
    margin-bottom: 36px;
    gap: 0;
}
.step-item {
    display: flex; align-items: center; gap: 10px;
    cursor: pointer;
    transition: all 0.3s;
}
.step-circle {
    width: 36px; height: 36px;
    border-radius: 50%;
    border: 2px solid var(--cream-dark);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.82rem; font-weight: 700;
    color: var(--text-light);
    background: var(--white);
    transition: all 0.4s;
    flex-shrink: 0;
}
.step-label {
    font-size: 0.82rem; font-weight: 600;
    color: var(--text-light);
    transition: color 0.3s;
    white-space: nowrap;
}
.step-line {
    flex: 1; height: 2px;
    background: var(--cream-dark);
    margin: 0 12px;
    transition: background 0.4s;
    min-width: 20px;
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-color: var(--gold);
    color: var(--white);
    box-shadow: var(--shadow-gold);
}
.step-item.active .step-label { color: var(--dark); }
.step-item.completed .step-circle {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
}
.step-item.completed .step-label { color: var(--green); }
.step-line.active { background: var(--gold); }
.step-line.completed { background: var(--green); }

/* ═══ FORM ═══ */
.form-step { display: none; animation: fadeIn 0.4s ease; }
.form-step.active { display: block; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.form-row.single { grid-template-columns: 1fr; }

.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}
.form-group label .required {
    color: var(--red);
    margin-left: 2px;
}
.form-group label .optional {
    color: var(--text-light);
    font-weight: 400;
    font-size: 0.8rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem;
    color: var(--dark);
    background: var(--white);
    outline: none;
    transition: all 0.3s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201,168,76,0.1);
}
.form-input.error,
.form-select.error,
.form-textarea.error {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(196,91,74,0.08);
}
.form-input::placeholder { color: var(--text-light); opacity: 0.6; }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select { cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%237A7068' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-hint {
    font-size: 0.78rem;
    color: var(--text-light);
    margin-top: 4px;
}
.form-error-msg {
    font-size: 0.78rem;
    color: var(--red);
    margin-top: 4px;
    display: none;
}
.form-group.has-error .form-error-msg { display: block; }
.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
    border-color: var(--red);
}

/* ═══ PHOTO UPLOAD ═══ */
.photo-upload-zone {
    display: flex; align-items: center; gap: 24px;
    margin-bottom: 20px;
}
.photo-preview {
    width: 110px; height: 110px;
    border-radius: 50%;
    border: 3px dashed var(--cream-dark);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: var(--cream);
    flex-shrink: 0;
    position: relative;
}
.photo-preview:hover { border-color: var(--gold); background: rgba(201,168,76,0.05); }
.photo-preview.has-photo { border-style: solid; border-color: var(--gold); }
.photo-preview img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: none;
}
.photo-preview.has-photo img { display: block; }
.photo-preview .placeholder {
    text-align: center;
    color: var(--text-light);
}
.photo-preview.has-photo .placeholder { display: none; }
.photo-preview .placeholder svg {
    width: 28px; height: 28px;
    stroke: var(--text-light);
    margin-bottom: 4px;
}
.photo-preview .placeholder span {
    font-size: 0.7rem; display: block;
}

.photo-upload-info h4 {
    font-size: 0.95rem; font-weight: 600;
    color: var(--dark); margin-bottom: 4px;
}
.photo-upload-info p {
    font-size: 0.82rem;
    color: var(--text-light);
    line-height: 1.5;
    margin-bottom: 10px;
}
.photo-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 18px;
    background: var(--cream);
    border: 2px solid var(--cream-dark);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem; font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: all 0.3s;
}
.photo-btn:hover {
    border-color: var(--gold);
    background: rgba(201,168,76,0.05);
}
#photoInput { display: none; }

/* ═══ PASSWORD STRENGTH ═══ */
.password-wrapper { position: relative; }
.password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; cursor: pointer;
    color: var(--text-light); font-size: 1.1rem;
    padding: 4px; transition: color 0.3s;
}
.password-toggle:hover { color: var(--gold); }
.password-strength {
    display: flex; gap: 4px; margin-top: 8px;
}
.password-strength .bar {
    flex: 1; height: 4px;
    background: var(--cream-dark);
    border-radius: 4px;
    transition: background 0.3s;
}
.password-strength .bar.weak { background: var(--red); }
.password-strength .bar.medium { background: #E8A838; }
.password-strength .bar.strong { background: var(--green); }
.password-strength-text {
    font-size: 0.75rem;
    margin-top: 4px;
    font-weight: 500;
}

/* ═══ FORM ACTIONS ═══ */
.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--cream-dark);
}
.btn-prev {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text);
    border: 2px solid var(--cream-dark);
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.btn-prev:hover { border-color: var(--dark); }
.btn-next,
.btn-submit,
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.92rem; font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: var(--shadow-gold);
}
.btn-next:hover, .btn-submit:hover, .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(201,168,76,0.35);
}
.btn-submit {
    background: linear-gradient(135deg, var(--green), #3A6B47);
    box-shadow: 0 8px 30px rgba(74,124,89,0.25);
}
.btn-submit:hover {
    box-shadow: 0 12px 35px rgba(74,124,89,0.35);
}

/* ═══ CHECKBOX / TERMS ═══ */
.form-check {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 16px;
}
.form-check input[type="checkbox"] {
    width: 20px; height: 20px;
    accent-color: var(--gold);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}
.form-check label {
    font-size: 0.88rem;
    color: var(--text);
    line-height: 1.5;
    cursor: pointer;
}
.form-check label a {
    color: var(--gold-dark);
    text-decoration: underline;
}

/* ═══ SUCCESS MESSAGE ═══ */
.success-message {
    text-align: center;
    padding: 60px 40px;
    display: none;
}
.success-message.show { display: block; }
.success-icon {
    width: 90px; height: 90px;
    background: linear-gradient(135deg, var(--green), #3A6B47);
    border-radius: 50%; margin: 0 auto 24px;
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--white);
    box-shadow: 0 12px 40px rgba(74,124,89,0.25);
    animation: successPop 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes successPop {
    0% { transform: scale(0); }
    60% { transform: scale(1.15); }
    100% { transform: scale(1); }
}
.success-message h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; font-weight: 700;
    color: var(--dark); margin-bottom: 12px;
}
.success-message p {
    font-size: 1rem; color: var(--text-light);
    line-height: 1.7; margin-bottom: 8px;
}
.success-message .code-box {
    display: inline-block;
    background: var(--cream);
    border: 2px dashed var(--gold);
    border-radius: var(--radius-sm);
    padding: 14px 28px; margin: 20px 0;
}
.success-message .code-box span {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; font-weight: 700;
    color: var(--gold-dark);
    letter-spacing: 3px;
}
.success-message .code-box small {
    display: block; font-size: 0.78rem;
    color: var(--text-light); margin-top: 4px;
}
.success-actions {
    display: flex; gap: 12px; justify-content: center;
    margin-top: 28px;
}
.btn-gold {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--white); text-decoration: none;
    border-radius: 50px;
    font-weight: 600; font-size: 0.95rem;
    transition: all 0.3s;
    box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(201,168,76,0.35); }

/* ═══ ALERT MESSAGES ═══ */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    margin-bottom: 20px;
    display: flex; align-items: flex-start; gap: 10px;
}
.alert-error {
    background: var(--red-light);
    border: 1px solid rgba(196,91,74,0.15);
    color: var(--red);
}
.alert-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 768px) {
    .nav-right .nav-login,
    .nav-right .nav-back { display: none !important; }
    .nav-right { gap: 12px; }
    .nav-burger { display: flex; }
    .navbar { padding: 10px 0; }
    .nav-logo-icon { width: 36px; height: 36px; font-size: 1.1rem; border-radius: 10px; }
    .nav-logo-text { font-size: 1.1rem; }
}
@media (max-width: 480px) {
    .navbar .container { padding: 0 16px; }
}
@media (max-width: 1024px) {
    .page-wrapper { grid-template-columns: 1fr; }
    .info-panel { display: none; }
    .form-panel { padding: 40px 24px; max-height: none; }
}

@media (max-width: 768px) {
    .form-row { grid-template-columns: 1fr; }
    .stepper .step-label { display: none; }
    .stepper .step-line { min-width: 16px; }
    .form-actions { flex-direction: column-reverse; gap: 12px; }
    .form-actions .btn-prev,
    .form-actions .btn-next,
    .form-actions .btn-submit { width: 100%; justify-content: center; }
    .photo-upload-zone { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .form-panel { padding: 30px 16px; }
    .form-header h2 { font-size: 1.4rem; }
}
