/* ============================================
   NEXT INVESTOR - FORM STYLES
   Design: Dark Gold Premium
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Playfair+Display:wght@400;700&display=swap');

:root {
    --gold: #c9a227;
    --gold-light: #e8c547;
    --gold-dark: #a07d15;
    --dark: #0a0a0a;
    --dark-2: #111111;
    --dark-3: #1a1a1a;
    --dark-4: #222222;
    --text: #e0e0e0;
    --text-muted: #888;
    --border: #2a2a2a;
    --success: #28a745;
    --error: #dc3545;
    --radius: 8px;
    --shadow: 0 8px 32px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: var(--dark);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---- BACKGROUND ---- */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(201,162,39,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(201,162,39,0.05) 0%, transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #0d1520 50%, #0a0a0a 100%);
}

.page-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201,162,39,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,162,39,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- HEADER ---- */
.site-header {
    position: relative;
    z-index: 10;
    background: linear-gradient(180deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 100%);
    border-bottom: 1px solid rgba(201,162,39,0.3);
    padding: 0;
}

.header-top {
    background: rgba(201,162,39,0.08);
    padding: 8px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(201,162,39,0.1);
}

.header-top a {
    color: var(--gold);
    text-decoration: none;
}

.header-main {
    padding: 20px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    color: #000;
    font-size: 20px;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text .brand {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 3px;
    line-height: 1;
}

.logo-text .sub {
    font-size: 10px;
    color: var(--gold);
    letter-spacing: 4px;
    font-weight: 500;
    text-transform: uppercase;
}

.header-tagline {
    text-align: right;
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.header-tagline strong {
    display: block;
    color: var(--gold);
    font-size: 13px;
    letter-spacing: 2px;
}

/* ---- HERO SECTION ---- */
.form-hero {
    position: relative;
    z-index: 5;
    padding: 60px 40px 40px;
    text-align: center;
}

.form-hero .badge {
    display: inline-block;
    background: rgba(201,162,39,0.15);
    border: 1px solid rgba(201,162,39,0.4);
    color: var(--gold);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.form-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 15px;
}

.form-hero h1 span {
    color: var(--gold);
}

.form-hero p {
    font-size: 15px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ---- FORM CONTAINER ---- */
.form-wrapper {
    position: relative;
    z-index: 5;
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px 80px;
}

.form-card {
    background: linear-gradient(145deg, rgba(26,26,26,0.95), rgba(17,17,17,0.98));
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 0 1px rgba(201,162,39,0.05);
}

.form-card-header {
    background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(201,162,39,0.05));
    border-bottom: 1px solid rgba(201,162,39,0.2);
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.form-card-header .icon {
    width: 44px;
    height: 44px;
    background: var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #000;
    flex-shrink: 0;
}

.form-card-header h2 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 1px;
}

.form-card-header p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 3px;
}

.form-body {
    padding: 40px;
}

/* ---- FORM SECTIONS ---- */
.form-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(201,162,39,0.2);
}

.section-title .num {
    width: 28px;
    height: 28px;
    background: var(--gold);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}

.section-title h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ---- FORM GRID ---- */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid.cols-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.form-grid.cols-1 {
    grid-template-columns: 1fr;
}

.col-span-2 {
    grid-column: span 2;
}

/* ---- FORM FIELDS ---- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.form-group label .req {
    color: var(--error);
    margin-left: 3px;
}

.form-control {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: var(--radius);
    padding: 12px 16px;
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    transition: all 0.3s ease;
    width: 100%;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.form-control:focus {
    border-color: var(--gold);
    background: rgba(201,162,39,0.06);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.1);
}

.form-control::placeholder {
    color: rgba(255,255,255,0.2);
}

.form-control.error {
    border-color: var(--error);
}

select.form-control {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a227' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

select.form-control option {
    background: #1a1a1a;
    color: #fff;
}

/* ---- RADIO BUTTONS ---- */
.radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.radio-option {
    position: relative;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.radio-option label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(201,162,39,0.2);
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: none;
    transition: all 0.3s ease;
}

.radio-option input[type="radio"]:checked + label {
    background: rgba(201,162,39,0.15);
    border-color: var(--gold);
    color: var(--gold);
}

.radio-option label::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid rgba(201,162,39,0.4);
    border-radius: 50%;
    flex-shrink: 0;
    transition: all 0.3s;
}

.radio-option input[type="radio"]:checked + label::before {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

/* ---- FILE UPLOAD ---- */
.file-upload-area {
    border: 2px dashed rgba(201,162,39,0.25);
    border-radius: var(--radius);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: rgba(255,255,255,0.02);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--gold);
    background: rgba(201,162,39,0.05);
}

.file-upload-area input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}

.file-upload-area .upload-icon {
    font-size: 32px;
    margin-bottom: 10px;
    display: block;
}

.file-upload-area .upload-text {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.file-upload-area .upload-text strong {
    color: var(--gold);
    display: block;
    font-size: 14px;
    margin-bottom: 4px;
}

.file-upload-area .file-name {
    margin-top: 10px;
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}

/* ---- SUBMIT BUTTON ---- */
.form-submit {
    margin-top: 40px;
    text-align: center;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    border: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(201,162,39,0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201,162,39,0.5);
}

.btn-submit:hover::before {
    opacity: 1;
}

.btn-submit:active {
    transform: translateY(0);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(0,0,0,0.3);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

.btn-submit.loading .spinner {
    display: block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ---- ALERTS ---- */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-success {
    background: rgba(40,167,69,0.15);
    border: 1px solid rgba(40,167,69,0.4);
    color: #5cb85c;
}

.alert-error {
    background: rgba(220,53,69,0.15);
    border: 1px solid rgba(220,53,69,0.4);
    color: #e74c3c;
}

.field-error {
    font-size: 11px;
    color: var(--error);
    margin-top: 4px;
}

/* ---- SUCCESS PAGE ---- */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.success-card {
    background: linear-gradient(145deg, rgba(26,26,26,0.98), rgba(17,17,17,0.98));
    border: 1px solid rgba(201,162,39,0.3);
    border-radius: 20px;
    padding: 60px 50px;
    text-align: center;
    max-width: 550px;
    width: 100%;
    box-shadow: var(--shadow);
}

.success-icon {
    width: 80px;
    height: 80px;
    background: rgba(40,167,69,0.15);
    border: 2px solid rgba(40,167,69,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 25px;
}

.success-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
}

.success-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 14px;
}

/* ---- FOOTER ---- */
.site-footer {
    position: relative;
    z-index: 5;
    background: rgba(0,0,0,0.8);
    border-top: 1px solid rgba(201,162,39,0.15);
    padding: 30px 40px;
    text-align: center;
}

.site-footer p {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.site-footer strong {
    color: var(--gold);
}

/* ---- PROGRESS BAR ---- */
.progress-bar {
    height: 3px;
    background: rgba(201,162,39,0.15);
    position: relative;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
    width: 0%;
    transition: width 0.5s ease;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .header-main {
        padding: 15px 20px;
    }

    .header-top {
        display: none;
    }

    .header-tagline {
        display: none;
    }

    .form-hero {
        padding: 40px 20px 30px;
    }

    .form-body {
        padding: 25px 20px;
    }

    .form-card-header {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.cols-3 {
        grid-template-columns: 1fr;
    }

    .col-span-2 {
        grid-column: span 1;
    }

    .btn-submit {
        padding: 16px 40px;
        font-size: 13px;
    }
}

/* ---- TOOLTIP ---- */
.tooltip-wrap {
    position: relative;
    display: inline-block;
    margin-left: 5px;
}

.tooltip-wrap .tip-icon {
    width: 16px;
    height: 16px;
    background: rgba(201,162,39,0.2);
    border: 1px solid rgba(201,162,39,0.4);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: var(--gold);
    cursor: help;
    vertical-align: middle;
}

/* ---- CITY DROPDOWN ---- */
#city_id {
    transition: opacity 0.3s;
}

#city_id:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
