/* ==========================================
   INVEST INTELLIGENTLY - CONTACT/FORM PAGE
   ========================================== */

/* ==========================================
   CONTACT SECTION
   ========================================== */
.contact-section {
    min-height: 100vh;
    background: var(--gradient-light);
    padding: var(--spacing-xl) 0;
}

.contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xl);
}

.contact-header {
    grid-column: 1 / -1;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.contact-header h1 {
    color: var(--secondary-blue);
    margin-bottom: var(--spacing-sm);
}

.contact-intro {
    font-size: 1.25rem;
    color: var(--medium-gray);
    max-width: 800px;
    margin: 0 auto;
}

/* ==========================================
   FORM WRAPPER
   ========================================== */
.form-wrapper {
    background: var(--white);
    border-radius: 16px;
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
}

.investor-form {
    max-width: 100%;
}

/* ==========================================
   FORM SECTIONS
   ========================================== */
.form-section {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 2px solid var(--light-gray);
}

.form-section:last-of-type {
    border-bottom: none;
}

.form-section-title {
    color: var(--primary-blue);
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.optional-section {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-weight: 400;
}

/* ==========================================
   FORM GROUPS & ROWS
   ========================================== */
.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
}

.form-group {
    margin-bottom: var(--spacing-md);
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.required {
    color: var(--accent-orange);
}

.optional {
    font-size: 0.875rem;
    color: var(--medium-gray);
    font-weight: 400;
}

/* ==========================================
   FORM INPUTS
   ========================================== */
.form-input {
    width: 100%;
    padding: 1rem;
    min-height: 48px;
    border: 2px solid var(--light-gray);
    border-radius: 8px;
    font-size: 1rem;
    font-family: var(--font-primary);
    color: var(--dark-gray);
    transition: all var(--transition-fast);
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 95, 158, 0.1);
}

.form-input::placeholder {
    color: var(--medium-gray);
    opacity: 0.6;
}

.form-input.error {
    border-color: #dc3545;
}

.form-input.success {
    border-color: #28a745;
}

/* ==========================================
   ASSET SLIDER
   ========================================== */
.slider-container {
    padding: var(--spacing-md) 0;
}

.asset-slider {
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: var(--light-blue);
    outline: none;
    -webkit-appearance: none;
    margin-bottom: var(--spacing-sm);
}

.asset-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-orange);
    cursor: pointer;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.asset-slider::-webkit-slider-thumb:hover {
    background: var(--dark-orange);
    transform: scale(1.1);
}

.asset-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-orange);
    cursor: pointer;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.asset-slider::-moz-range-thumb:hover {
    background: var(--dark-orange);
    transform: scale(1.1);
}

.asset-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right,
        var(--primary-blue) 0%,
        var(--medium-blue) 50%,
        var(--accent-orange) 100%);
    border-radius: 5px;
}

.asset-slider::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right,
        var(--primary-blue) 0%,
        var(--medium-blue) 50%,
        var(--accent-orange) 100%);
    border-radius: 5px;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--medium-gray);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.slider-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-orange);
    text-align: center;
}

/* ==========================================
   ERROR MESSAGES
   ========================================== */
.error-message {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    min-height: 1.25rem;
}

/* ==========================================
   PRIVACY NOTICE
   ========================================== */
.privacy-notice {
    background: var(--light-blue);
    border-left: 4px solid var(--primary-blue);
    padding: var(--spacing-md);
    border-radius: 8px;
    margin-bottom: var(--spacing-lg);
}

.privacy-notice p {
    margin: 0;
    color: var(--dark-gray);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ==========================================
   FORM ACTIONS
   ========================================== */
.form-actions {
    text-align: center;
}

.btn-submit {
    min-width: 300px;
    min-height: 56px;
    position: relative;
    overflow: hidden;
}

.btn-submit:disabled {
    background: var(--medium-gray);
    cursor: not-allowed;
    transform: none;
}

.btn-submit:disabled:hover {
    background: var(--medium-gray);
    transform: none;
}

/* ==========================================
   FORM MESSAGES
   ========================================== */
.form-message {
    margin-top: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* ==========================================
   CONTACT SIDEBAR
   ========================================== */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.info-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

.info-card h4 {
    color: var(--primary-blue);
    margin-bottom: var(--spacing-sm);
    font-size: 1.25rem;
}

.info-card p {
    color: var(--dark-gray);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.next-steps {
    list-style: none;
    counter-reset: step-counter;
    padding-left: 0;
}

.next-steps li {
    counter-increment: step-counter;
    position: relative;
    padding-left: 3rem;
    margin-bottom: var(--spacing-md);
}

.next-steps li::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.next-steps li strong {
    display: block;
    color: var(--secondary-blue);
    margin-bottom: 0.25rem;
}

.next-steps li p {
    margin: 0;
    font-size: 0.875rem;
    color: var(--medium-gray);
}

.contact-email a {
    color: var(--accent-orange);
    font-weight: 600;
    word-break: break-word;
}

.contact-email a:hover {
    color: var(--dark-orange);
    text-decoration: underline;
}

/* ==========================================
   LOADING STATE
   ========================================== */
.btn-submit.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--white);
    border-radius: 50%;
    animation: spinner 0.6s linear infinite;
}

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

.btn-submit.loading {
    color: transparent;
}

/* ==========================================
   RESPONSIVE - TABLET
   ========================================== */
@media (max-width: 992px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-header {
        grid-column: 1;
    }

    .form-wrapper {
        padding: var(--spacing-lg);
    }

    .contact-sidebar {
        order: -1;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE
   ========================================== */
@media (max-width: 768px) {
    .contact-section {
        padding: var(--spacing-md) 0;
    }

    .form-wrapper {
        padding: var(--spacing-md);
    }

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

    .btn-submit {
        min-width: 100%;
    }

    .slider-value {
        font-size: 1.5rem;
    }

    .info-card {
        padding: var(--spacing-md);
    }
}
