/* ========================================
   EXACT OPENDOOR MATCH CSS
   ======================================== */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    background: white;
    color: #1a1a1a;
    line-height: 1.5;
    overflow: auto;
}

/* ========================================
   EXIT BUTTON
   ======================================== */

.close-btn {
    position: fixed;
    top: 20px;
    right: 32px;
    background: transparent;
    border: none;
    color: #0061df;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    z-index: 1000;
}

.close-btn:hover {
    text-decoration: underline;
}

/* ========================================
   MAIN CONTAINER
   ======================================== */

.form-container {
    display: flex;
    min-height: 100vh;
    background: white;
}

/* ========================================
   LEFT SIDE - NARROW WHITE PANEL
   ======================================== */

.progress-sidebar {
    width: 45%;
    max-width: 700px;
    min-width: 420px;
    background: white;
    padding: 80px 60px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow-y: auto;
}

.logo-section {
    margin-bottom: 0;
}

/* Hide the logo image */
.sidebar-logo {
    display: none !important;
}

/* Brand text at top */
.logo-section::before {
    content: 'minnesotalakehomesforsale.com';
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 48px;
    letter-spacing: 0.3px;
    text-transform: lowercase;
}

.logo-section h3 {
    font-size: 64px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

.logo-section p {
    font-size: 20px;
    color: #6b6b6b;
    line-height: 1.6;
    font-weight: 400;
}

/* Tablet Optimization */
@media (max-width: 1400px) {
    .logo-section h3 {
        font-size: 48px;
    }
}

/* Tablet Optimization */
@media (max-width: 1400px) {
    .logo-section h3 {
        font-size: 48px;
    }
}

/* ========================================
   RIGHT SIDE - WIDE FORM AREA
   ======================================== */

.form-content {
    flex: 1;
    background: white;
    padding: 80px 160px 160px 120px;
    display: flex;
    justify-content: flex-end;
}

.form-content::-webkit-scrollbar {
    width: 6px;
}

.form-content::-webkit-scrollbar-track {
    background: transparent;
}

.form-content::-webkit-scrollbar-thumb {
    background: #d1d1d1;
    border-radius: 3px;
}

/* ========================================
   FORM - SINGLE COLUMN, WIDE
   ======================================== */

#join-network-form,
#sell-home-form,
#buy-home-form,
#book-call-form {
    max-width: 800px;
    width: 100%;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
    padding: 28px 22px;
    border: 1px solid #d4d4d4;
    border-radius: 12px;
    font-size: 18px;
    font-family: inherit;
    transition: border-color 0.15s ease;
    background: white;
    color: #1a1a1a;
    font-weight: 400;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group 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='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #0061df;
}

.form-group textarea {
    resize: vertical;
    min-height: 180px;
    line-height: 1.6;
}

/* ========================================
   UPLOAD AREA
   ======================================== */

.upload-area {
    background: white;
    border: 2px dashed #d4d4d4;
    border-radius: 12px;
    padding: 80px 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-area:hover {
    border-color: #0061df;
}

.upload-icon {
    margin-bottom: 20px;
}

.upload-icon svg {
    color: #999;
    width: 40px;
    height: 40px;
}

.upload-area h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.upload-area p {
    font-size: 14px;
    color: #6b6b6b;
}

#file-name-display {
    display: block;
    font-size: 14px;
    color: #00a862;
    font-weight: 500;
    margin-top: 16px;
}

/* ========================================
   SUBMIT BUTTON
   ======================================== */

.form-navigation {
    margin-top: 48px;
}

.btn-submit {
    width: 100%;
    padding: 24px 32px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    border: none;
    font-family: inherit;
    background: #0061df;
    color: white;
}

.btn-submit:hover {
    background: #0052c2;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .progress-sidebar {
        width: 35%;
        padding: 60px 40px;
    }

    .form-content {
        padding: 60px 80px 100px 60px;
    }

    .logo-section h3 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .form-container {
        flex-direction: column;
    }

    .progress-sidebar {
        width: 100%;
        max-width: 100%;
        padding: 40px 24px;
    }

    .logo-section h3 {
        font-size: 36px;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .logo-section p {
        font-size: 16px;
    }

    .form-content {
        padding: 40px 24px 100px;
    }

    #join-network-form,
    #sell-home-form,
    #buy-home-form,
    #book-call-form {
        max-width: 100%;
    }

    .form-grid {
        gap: 32px;
    }
}

/* Hide all multi-step elements */
.form-step,
.step-header,
.membership-cards,
.service-areas-grid {
    display: none !important;
}

/* Custom Multi-Select Dropdown */
.custom-select-wrapper {
    position: relative;
    user-select: none;
}

.custom-select-trigger {
    position: relative;
    display: block;
    width: 100%;
    padding: 12px;
    font-size: 16px;
    color: #333;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.custom-select-trigger:after {
    position: absolute;
    content: '';
    top: 50%;
    right: 15px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-color: #333 transparent transparent transparent;
    transform: translateY(-25%);
    transition: all 0.2s;
}

.custom-select-trigger.active:after {
    transform: translateY(-75%) rotate(180deg);
}

.custom-options {
    position: absolute;
    display: none;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 8px 8px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-options.open {
    display: block;
}

.custom-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f5f9;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background-color: #f8fafc;
    color: #3b82f6;
}

.custom-option input[type="checkbox"] {
    transform: scale(1.2);
    cursor: pointer;
}

/* Terms Checkbox */
.terms-checkbox {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    padding: 0;
    /* Reset any inherited padding */
    appearance: auto;
    /* Ensure native control style is used */
    -webkit-appearance: checkbox;
    /* Explicit for iOS */
}

@media (max-width: 768px) {
    .terms-checkbox {
        width: 18px;
        height: 18px;
        margin-top: 3px;
    }
}