/* ===== RESET & BASE ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'DM Sans', sans-serif;
    background: #f5f3ee;
    color: #1a1a1a;
    min-height: 100vh;
}

/* ===== HEADER ===== */
.main-header {
    background: #1a1a1a;
    padding: 1.25rem 2rem;
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.tagline {
    display: block;
    font-size: 10px;
    color: #999;
    letter-spacing: 3px;
    margin-top: 2px;
}

/* ===== HERO ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }

.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 42px;
    font-weight: 700;
    line-height: 1.2;
    color: #1a1a1a;
    margin-bottom: 1rem;
}

.highlight { color: #8B6914; }

.description {
    font-size: 15px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.features { display: flex; gap: 1rem; flex-wrap: wrap; }

.features span {
    font-size: 13px;
    color: #444;
    background: #fff;
    border: 0.5px solid #ddd;
    padding: 6px 14px;
    border-radius: 20px;
}

.img-wrapper { position: relative; border-radius: 16px; overflow: hidden; }
.img-wrapper img { width: 100%; display: block; height: 420px; object-fit: cover; }

.overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.apply-btn {
    background: #0000D1;
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.apply-btn:hover { background: #fff; color: #0000D1; }

/* ===== MODAL ===== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-overlay.open { display: flex; }

.modal-card {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 660px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close-x {
    position: absolute;
    top: 14px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
}

.close-x:hover { color: #1a1a1a; }

/* ===== PROGRESS ===== */
.progress-header {
    background: #fafaf8;
    padding: 1.25rem 1.75rem;
    border-bottom: 0.5px solid #e8e6e0;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.step-dot { display: flex; flex-direction: column; align-items: center; gap: 4px; }

.step-dot-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid #ddd;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 500;
    color: #aaa;
    transition: all 0.3s;
}

.step-dot-circle.active { background: #1a1a1a; border-color: #1a1a1a; color: #fff; }
.step-dot-circle.done { background: #e8f5e9; border-color: #4caf50; color: #2e7d32; font-size: 12px; }

.step-dot-label { font-size: 10px; color: #aaa; white-space: nowrap; }
.step-dot-label.active { color: #1a1a1a; font-weight: 500; }

.progress-bar-track { height: 2px; background: #e8e6e0; border-radius: 2px; margin-top: 4px; }
.progress-bar-fill { height: 100%; background: #1a1a1a; border-radius: 2px; transition: width 0.4s ease; }

/* ===== FORM BODY ===== */
.step-panel { display: none; padding: 2rem 1.75rem; }
.step-panel.active { display: block; }

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.section-sub { font-size: 13px; color: #777; margin-bottom: 1.5rem; }

/* ===== CRITERIA ===== */
.criteria-box {
    background: #fafaf8;
    border: 0.5px solid #e8e6e0;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.criteria-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    color: #555;
    line-height: 1.6;
}

.criteria-item:last-child { margin-bottom: 0; }
.criteria-item strong { color: #1a1a1a; }

.criteria-icon {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #e8f0fb;
    color: #1a56db;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

.info-note {
    background: #f0f7ff;
    border: 0.5px solid #bee3f8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 12px;
    color: #1a56db;
    line-height: 1.6;
}

/* ===== FORM ELEMENTS ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.field-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }

label {
    font-size: 11px;
    font-weight: 500;
    color: #777;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
    width: 100%;
    padding: 9px 12px;
    font-size: 14px;
    font-family: 'DM Sans', sans-serif;
    border: 0.5px solid #ccc;
    border-radius: 8px;
    background: #fff;
    color: #1a1a1a;
    transition: border-color 0.2s;
    outline: none;
}

input:focus, select:focus, textarea:focus {
    border-color: #1a1a1a;
    box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

input.error, select.error, textarea.error { border-color: #e53e3e !important; }

textarea { resize: vertical; min-height: 75px; }

.error-msg { font-size: 11px; color: #e53e3e; display: none; }
.error-msg.show { display: block; }

/* ===== RADIO PILLS ===== */
.radio-group { display: flex; gap: 8px; flex-wrap: wrap; }

.radio-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 0.5px solid #ccc;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    transition: all 0.2s;
    background: #fff;
    user-select: none;
}

.radio-pill input[type="radio"] { display: none; }
.radio-pill.selected { border-color: #1a1a1a; background: #1a1a1a; color: #fff; }
.radio-pill:hover:not(.selected) { border-color: #888; background: #fafaf8; }

/* ===== DIVIDER ===== */
.divider { height: 0.5px; background: #e8e6e0; margin: 1rem 0; }

/* ===== SUB SECTION LABEL ===== */
.sub-section-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #8B6914;
    border-left: 3px solid #8B6914;
    padding-left: 10px;
    margin-bottom: 1rem;
    margin-top: 0.25rem;
}

/* ===== REVIEW ===== */
.review-summary {
    background: #fafaf8;
    border: 0.5px solid #e8e6e0;
    border-radius: 10px;
    padding: 1.25rem;
    font-size: 13px;
    color: #555;
}

/* ===== BUTTONS ===== */
.btn-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 0.5px solid #e8e6e0;
}

.btn-prev {
    padding: 10px 22px;
    font-size: 13px;
    font-family: 'DM Sans', sans-serif;
    border: 0.5px solid #ccc;
    border-radius: 8px;
    background: transparent;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-prev:hover { background: #fafaf8; }

.btn-next {
    padding: 10px 28px;
    font-size: 13px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    border: none;
    border-radius: 8px;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: auto;
}

.btn-next:hover { background: #333; }
.btn-next:disabled { background: #aaa; cursor: not-allowed; }

/* ===== SUCCESS ===== */
.success-panel {
    text-align: center;
    padding: 3rem 2rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 28px;
    color: #2e7d32;
}

.success-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.success-sub { font-size: 14px; color: #666; line-height: 1.8; }

.submit-msg {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

.submit-msg.error { background: #fff5f5; color: #e53e3e; border: 0.5px solid #feb2b2; }
.submit-msg.success { background: #e8f5e9; color: #2e7d32; border: 0.5px solid #a5d6a7; }

/* ===== FOOTER ===== */
.main-footer {
    background: #1a1a1a;
    padding: 2rem 2rem 1.5rem;
    margin-top: 0;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 9px;
    color: #555;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #ccc; }

.footer-sep { color: #444; font-size: 12px; }

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 0.5px solid #2a2a2a;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy {
    font-size: 12px;
    color: #555;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #242424;
    border: 0.5px solid #2e2e2e;
    border-radius: 20px;
    padding: 5px 14px;
}

.location-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}

#locationText {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

/* ===== FOOTER ===== */
.main-footer {
    background: #1a1a1a;
    padding: 2rem 2rem 1.5rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.footer-tagline {
    font-size: 9px;
    color: #555;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover { color: #ccc; }

.footer-sep { color: #333; font-size: 12px; }

.footer-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 0.5px solid #2a2a2a;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-copy {
    font-size: 12px;
    color: #555;
}

.footer-location {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #222;
    border: 0.5px solid #2e2e2e;
    border-radius: 20px;
    padding: 5px 14px;
}

.location-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4caf50;
    flex-shrink: 0;
    animation: locpulse 2s infinite;
}

@keyframes locpulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

#locationText {
    font-size: 12px;
    color: #888;
    white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section { grid-template-columns: 1fr; }
    .title { font-size: 30px; }
    .form-grid { grid-template-columns: 1fr; }
    .step-dot-label { display: none; }
    .modal-card { max-height: 95vh; }
    .footer-meta { flex-direction: column; align-items: flex-start; }
    .footer-brand { flex-direction: column; gap: 4px; }
}