* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}


.form-header {
    font-size: 1.7rem;
    color: #1e3d72;
}

.welcome-header {
    font-size: 1.7rem;
    color: #1e3d72;
}

.form-subheader {
    padding-top: 8px;
    font-size: 0.7rem;
}

.main-registration-container {
    display: flex;
    justify-content: space-between !important;
}

.image-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('../images/img/image11.png') no-repeat center center / cover fixed;
    border-radius: 0 0 0 15px;
}

/* .registration-property-image {
    width: 100%;
    background: #000;
    justify-content: center;
} */

.image-section img {
    /* height: 100vh; */
    width: 100%;
    max-width: 100%;
}

.property-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
}

.form-section {
    flex: 1;
    background: white;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.form-container {
    width: 100%;
    max-width: 450px;
    padding: 2rem;
}

.logo-section {
    text-align: center;
    margin-bottom: 1rem;
}

.reg-logo {
    height: auto;
    width: 60px;
    margin: 0 auto 1rem;
    /* background-size: cover; */

}



.tab-buttons {
    display: flex;
    margin-bottom: 2rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #666;
    padding: 5px;
}

.tab-btn {
    flex: 1;
    padding: 9px 10px;
    border: none;
    background: #f8f9fa;
    color: #666;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tab-btn.active {
    background: #ff5722;
    color: white;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #ff5722;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

.form-control::placeholder {
    color: #adb5bd;
}

.password-input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 1rem;
}

.password-toggle:hover {
    color: #ff5722;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 1.5rem 0;
}

.checkbox-input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #ff5722;
}

.checkbox-label {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
    flex: 1;
}

.checkbox-label a {
    color: #ff5722;
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: #1a1a2e;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.submit-btn:hover {
    background: #16213e;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.login-link {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
}

.login-link a {
    color: #ff5722;
    text-decoration: none;
    font-weight: 500;
}

.login-link a:hover {
    text-decoration: underline;
}


/* Responsive Design */
@media (max-width: 992px) {

    .form-section {
        min-height: auto;
        padding: 2rem 1rem;
    }

    .tab-btn {
        /* padding: 9px 10px; */
        font-size: 0.8rem !important;
        border-radius: 8px;
    }

}


@media (max-width: 716px) {
    .main-registration-container {
        flex-direction: column;
    }
}


@media (max-width: 576px) {
    /* .registration-container {
        flex-direction: column;
    } */


    .form-container {
        padding: 1rem;
    

    .form-control {
        padding: 10px 14px;
    }

    .image-section {
        height: 150px;
    }

    .property-image {
        height: 150px;
    }
}

/* Animation Effects */
.form-container {
    animation: slideIn 0.6s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-group {
    animation: fadeInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.form-group:nth-child(4) { animation-delay: 0.4s; }
.form-group:nth-child(5) { animation-delay: 0.5s; }
.form-group:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}}




/* CSS styles for the branch selection field */

/* Enhanced select field styling */
.form-group select.form-control {
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 16px;
    padding-right: 45px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
}

/* Focus state for select */
.form-group select.form-control:focus {
    border-color: #1a1a2e;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: 0;
}

/* Hover state for select */
.form-group select.form-control:hover {
    border-color: #80bdff;
}

/* Custom styling for disabled state */
.form-group select.form-control:disabled {
    background-color: #e9ecef;
    opacity: 1;
    cursor: not-allowed;
}

/* Style for the default option */
.form-group select.form-control option[value=""] {
    color: #6c757d;
    font-style: italic;
}

/* Style for valid options */
.form-group select.form-control option:not([value=""]) {
    color: #495057;
    font-style: normal;
}

/* Enhanced form group spacing */
.form-group {
    margin-bottom: 1.5rem;
}

/* Label styling */
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.95rem;
}

/* Required field indicator */
.form-label::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

/* Error state styling */
.form-group select.form-control.is-invalid {
    border-color: #dc3545;
}

.form-group select.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Success state styling */
.form-group select.form-control.is-valid {
    border-color: #28a745;
}

.form-group select.form-control.is-valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .form-group select.form-control {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 45px 12px 15px;
    }
    
}

/* Dark mode support (if needed) */
@media (prefers-color-scheme: dark) {
    .form-group select.form-control {
        background-color: #dfe3ebff;
        /* border-color: #4a5568; */
        color: #1a1a2e;
        background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    }
    
    .form-group select.form-control:focus {
        border-color: #1a1a2e;
        background-color: #dfe3ebff;
    }
    
    
    .form-group select.form-control option {
        background-color: #dfe3ebff;
        color: #1a1a2e;
    }
}

/* Loading state for form submission */
.form-submitting select.form-control {
    pointer-events: none;
    opacity: 0.7;
    background-color: #f8f9fa;
}

/* Custom select wrapper for better control */
.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #6c757d;
    pointer-events: none;
}

.select-wrapper select {
    padding-right: 35px !important;
}

/* Animation for form field focus */
.form-group {
    transition: all 0.3s ease;
}

.form-control {
    transition: all 0.3s ease;
    border-width: 2px;
}

.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Enhanced error message styling */
.form-error {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    padding: 8px 12px;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    color: #721c24;
    font-size: 0.875rem;
}

.form-error i {
    flex-shrink: 0;
    color: #dc3545;
}