/* ---------- SPLIT CONTAINER ---------- */
.register-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* LEFT COLUMN (visual) */
.register-container .visual-col {
    flex: 0 0 45%;
    position: relative;
    background: url('../images/slides/slide1.png') no-repeat center center/cover;
    overflow: hidden;
}
.register-container .overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(23,28,62,0.85) 0%, rgba(23,28,62,0.6) 100%);
    z-index: 1;
}
.register-container .brand-top {
    position: absolute;
    top: 32px;
    left: 32px;
    z-index: 2;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 1px;
}
.register-container .bottom-quote {
    position: absolute;
    bottom: 48px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 2;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
}

/* RIGHT COLUMN (form) */
.register-container .form-col {
    flex: 0 0 55%;
    background: var(--color-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 5%;
}
.register-container .form-wrapper {
    max-width: 700px;
    width: 100%;
}

/* Header */
.register-container .header-group {
    margin-bottom: 40px;
}
.register-container .header-group h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 8px;
}
.register-container .header-group .tagline {
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #cdae77;
    text-transform: uppercase;
    font-weight: 600;
}

/* Alert messages */
.register-container .alert-error, .register-container .alert-success {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 0.85rem;
}
.register-container .alert-error {
    background: #fee2e2;
    color: #b91c1c;
    border-left: 4px solid #b91c1c;
}
.register-container .alert-success {
    background: #e0f2e9;
    color: #2c6e4e;
    border-left: 4px solid #2c6e4e;
}

/* Form rows (label + input on same row) */
.register-container .form-row {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 24px;
}
.register-container .form-row label {
    flex: 0 0 100px;
    font-weight: 600;
    color: var(--color-white);
    font-size: 0.9rem;
    padding-top: 12px;
}
.register-container .input-wrapper {
    flex: 1;
}
.register-container input,
.register-container select {
    width: 100%;
    padding: 12px;
    background: #f0f2f5;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.25s ease-in-out;
}
.register-container input:focus,
.register-container select:focus {
    outline: none;
    border-color: #cdae77;
    box-shadow: 0 0 0 3px rgba(205, 174, 119, 0.2);
}
.register-container .error-msg {
    display: block;
    font-size: 0.7rem;
    color: #dc2626;
    margin-top: 4px;
}

/* Premium segmented radio (pill style) */
.register-container .radio-group {
    display: flex;
    gap: 12px;
    background: #f0f2f5;
    border: 1px solid #e5e7eb;
    border-radius: 40px;
    padding: 4px;
    width: fit-content;
    min-width: 222px;
}

/* Each label acts as a pill button */
.register-container .radio-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    padding: 8px 20px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #171c3e;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

/* Hide native radio */
.register-container .radio-premium input {
    display: none;
}

/* Custom circle */
.register-container .radio-custom {
    width: 18px;
    height: 18px;
    background: #ffffff;
    border: 2px solid #cdae77;
    border-radius: 50%;
    display: inline-block;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* Selected state */
.register-container .radio-premium input:checked + .radio-custom {
    background: #cdae77;
    box-shadow: inset 0 0 0 3px #ffffff;
}

/* Label text alignment */
.register-container .radio-label {
    line-height: 1.2;
    color: var(--color-dark) !important;
}

/* Hover effect */
.register-container .radio-premium:hover {
    background: rgba(205, 174, 119, 0.1);
}

/* Searchable country dropdown */
.register-container .custom-select-wrapper {
    position: relative;
}
.register-container #countryInput {
    width: 100%;
    padding: 12px;
    background: #f0f2f5;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.register-container #countryInput:focus {
    outline: none;
    border-color: #cdae77;
    box-shadow: 0 0 0 3px rgba(205, 174, 119, 0.2);
}
.register-container .country-dropdown-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 200px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}
.register-container .country-dropdown-list li {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.2s;
}
.register-container .country-dropdown-list li:hover {
    background: #f0f2f5;
}
.register-container .country-dropdown-list li.selected {
    background: #cdae77;
    color: #171c3e;
    font-weight: 500;
}

/* Checkbox styling (Terms) */
.register-container .terms-row {
    margin-bottom: 32px;
}
.register-container .checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.85rem;
    color: #4a5568;
}
.register-container .checkbox-label input {
    display: none;
}
.register-container .checkmark {
    width: 18px;
    height: 18px;
    background: #f0f2f5;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    transition: background 0.2s, border-color 0.2s;
}
.register-container .checkbox-label input:checked + .checkmark {
    background: #cdae77;
    border-color: #cdae77;
}
.register-container .checkbox-label input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: -1px;
    left: 3px;
    font-size: 14px;
    color: #171c3e;
}
.register-container .checkbox-label a {
    color: #cdae77;
    text-decoration: none;
}
.register-container .checkbox-label a:hover {
    text-decoration: underline;
}

/* Action buttons */
.register-container .action-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    margin-top: 8px;
}
.register-container .btn-cancel, .register-container .btn-confirm {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    border: none;
}
.register-container .btn-cancel {
    background: var(--color-light-gray);
    color: var(--color-dark);
}
.register-container .btn-cancel:hover {
    background: var(--color-white);
    transform: translateY(-2px);
}
.register-container .btn-confirm {
    background: #cdae77;
    color: #171c3e;
}
.register-container .btn-confirm:hover {
    background: #b89a5e;
    transform: translateY(-2px);
}

/* ---------- RESPONSIVE (mobile & tablet) ---------- */
@media (max-width: 992px) {
    .register-container {
        flex-direction: column;
    }
    .register-container .visual-col {
        flex: 0 0 20vh;
        width: 100%;
    }
    .register-container .form-col {
        flex: none;
        width: 100%;
        padding: 48px 5%;
    }
    .register-container .brand-top {
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        white-space: nowrap; /* prevent wrapping on small screens? optional */
    }
    .register-container .form-row {
        flex-direction: column;
        gap: 8px;
    }
    .register-container .form-row label {
        flex: auto;                    /* remove fixed width */
        padding-top: 0;
        margin-bottom: 4px;
    }
    .register-container .input-wrapper {
        width: 100%;
    }
    .register-container .radio-premium-group {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;               /* allow wrap on very small screens */
    }
    .register-container .radio-premium {
        margin-top: 12px;
    }
    .register-container .action-buttons {
        justify-content: center;
    }
    .register-container .country-dropdown-list {
        max-height: 180px;
    }
}

@media (max-width: 480px) {
    .register-container .form-col {
        padding: 32px 5%;
    }
    .register-container .header-group h1 {
        font-size: 1.8rem;
    }
    .register-container .radio-premium {
        padding: 6px 14px;
        font-size: 0.8rem;
    }
    .register-container .btn-cancel,
    .register-container .btn-confirm {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
    .register-container .country-dropdown-list li {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}