/* Society Registration Modern CSS */

/* ===== HERO SECTION ===== */
.society-hero {
    background: linear-gradient(135deg, #228B70 0%, #1e7a5e 50%, #1a6b52 100%);
    padding: 150px 0 80px;
    position: relative;
    overflow: hidden;
}

.society-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="10" cy="60" r="0.5" fill="rgba(255,255,255,0.05)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.society-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.society-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    animation: fadeInUp 1s ease-out;
}

.society-hero p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ===== FORM CONTAINER ===== */
.society-form-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    margin: 20px auto 50px; /* Changed from -50px to 20px to prevent overlap */
    position: relative;
    z-index: 1; /* Lower z-index to stay under header */
    overflow: hidden;
    padding: 40px;
    padding-top: 80px; /* Increased from 60px to 80px for more space from header */
}

/* ===== STEPPER ===== */
.form-stepper {
    background: #f8f9fa;
    padding: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.stepper-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.stepper-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.stepper-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    background: #f8f9fa;
    padding: 0 1rem;
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.step-circle.active {
    background: #228B70;
    color: white;
    border-color: #228B70;
    box-shadow: 0 0 0 4px rgba(34, 139, 112, 0.2);
}

.step-circle.completed {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.step-circle.completed::after {
    content: '✓';
    font-size: 1.2rem;
}

.step-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6c757d;
    text-align: center;
    max-width: 100px;
}

.step-label.active {
    color: #228B70;
    font-weight: 600;
}

.step-label.completed {
    color: #28a745;
    font-weight: 600;
}

/* ===== FORM STEPS ===== */
.form-step {
    display: none;
    padding: 3rem;
    animation: fadeIn 0.5s ease-in-out;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    color: #228B70;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
}

.form-step h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #228B70, #28a745);
    border-radius: 2px;
}

/* Add spacing after section headers */
.form-step h2 {
    margin-bottom: 3rem; /* Increased from 2rem to 3rem */
}

/* Additional spacing for the first element after h2 */
.form-step h2 + .row,
.form-step h2 + .contact-container {
    margin-top: 1.5rem;
}

/* ===== FORM GROUPS ===== */
.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.form-group label i {
    margin-right: 8px; /* Add space between icon and text */
}

.form-group .form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group .form-control:focus {
    outline: none;
    border-color: #228B70;
    box-shadow: 0 0 0 3px rgba(34, 139, 112, 0.1);
    transform: translateY(-1px);
}

.form-group .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-group .invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    font-weight: 500;
}

/* Hide input icons since we removed them from HTML */
.input-icon {
    display: none !important;
}

.input-group {
    display: block;
}

/* Password field styling - match builder form exactly */
.password-input-container {
    position: relative;
}

/* Override password-strength.css to fix height issue */
.password-input-container input[type="password"] {
    height: auto !important; /* Force normal height */
    padding: 0.875rem 1rem !important; /* Match other form controls */
    min-height: auto !important; /* Remove any min-height */
    max-height: auto !important; /* Remove any max-height */
    line-height: normal !important; /* Normal line height */
    border: 2px solid #e9ecef !important; /* Restore normal border */
    background: white !important; /* Restore normal background */
}

/* Additional override specifically for society form */
.society-form-container .password-input-container input[type="password"] {
    padding: 0.875rem 1rem !important; /* Override password-strength.css padding: 12px 16px */
    height: calc(1.5em + 1.75rem + 2px) !important; /* Match Bootstrap form-control height */
    line-height: 1.5 !important; /* Match Bootstrap line-height */
}

/* Restore password-strength pseudo-elements but with proper height */
.society-form-container .password-input-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid #dee2e6;
    border-radius: 0.375rem;
    background: linear-gradient(white, white) padding-box;
    z-index: 1;
    transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    height: calc(1.5em + 1.75rem + 2px) !important; /* Match input height */
}

.society-form-container .password-input-container::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    bottom: -2px;
    width: var(--progress-width, 0%);
    background: var(--progress-color, #dc3545);
    border-radius: 0.375rem;
    z-index: 0;
    transition: all 1s cubic-bezier(0.25, 0.1, 0.25, 1);
    pointer-events: none;
    box-sizing: border-box;
    height: calc(1.5em + 1.75rem + 6px) !important; /* Match input height + border */
}

/* Focus state for pseudo-elements */
.society-form-container .password-input-container:focus-within::before {
    border-color: #e9ecef !important; /* Keep default border */
    box-shadow: none !important; /* No focus shadow */
}

.society-form-container .password-input-container:focus-within::after {
    border-color: #e9ecef !important; /* Keep default border */
}

/* Hide dynamically generated password strength div - not needed for society form */
.society-form-container .password-strength {
    display: none !important;
}

.society-form-container .strength-bar,
.society-form-container .strength-fill,
.society-form-container .strength-text {
    display: none !important;
}

/* Restore normal form-control styling for society form */
.society-form-container .password-input-container input[type="password"] {
    border: 2px solid #e9ecef !important;
    background: white !important;
    border-radius: 0.375rem !important;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out !important;
}

.society-form-container .password-input-container input[type="password"]:focus {
    border: 2px solid #e9ecef !important; /* Keep default border */
    box-shadow: none !important; /* No focus shadow */
    outline: none !important;
}

.password-input-container .form-control {
    height: auto !important; /* Force normal height */
    padding: 0.875rem 1rem !important; /* Match other form controls */
    min-height: auto !important; /* Remove any min-height */
    max-height: auto !important; /* Remove any max-height */
    line-height: normal !important; /* Normal line height */
}

/* Use common password strength CSS - remove custom styling */
.password-strength-note {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: #6c757d;
}

/* Fix radio button spacing */
.radio-group {
    display: flex;
    gap: 20px;
    margin-top: 8px;
}

.radio-item {
    display: flex;
    align-items: center;
}

.radio-item input[type="radio"] {
    margin-right: 8px; /* Add space between radio button and label */
}

.radio-item label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Multi-Select Dropdown Styling */
select[multiple] {
    min-height: 120px;
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: white;
    font-size: 0.95rem;
    line-height: 1.5;
}

select[multiple]:focus {
    border-color: #228B70;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 112, 0.25);
    outline: none;
}

select[multiple] option {
    padding: 8px 12px;
    margin: 2px 0;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
}

select[multiple] option:hover {
    background: #f8f9fa;
}

select[multiple] option:checked {
    background: #228B70;
    color: white;
    font-weight: 600;
}

select[multiple] option:checked:hover {
    background: #1e7a5e;
}

/* Tooltip styles */
.tooltip-trigger {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.tooltip-trigger i {
    color: #6c757d;
    font-size: 0.9rem;
}

.tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* Contact Details Layout */
.contact-container {
    margin-bottom: 2rem;
}

.contact-row {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
}

.remove-contact {
    margin-top: 10px;
}

.add-contact-btn {
    background: #228B70;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.add-contact-btn:hover {
    background: #1e7a5e;
    transform: translateY(-2px);
}

/* ===== INPUT ICONS ===== */
.input-group {
    position: relative;
}

.input-group .form-control {
    padding-left: 3rem;
}

.input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
    z-index: 3;
}

.input-group .form-control:focus + .input-icon {
    color: #228B70;
}

/* ===== RADIO BUTTONS ===== */
.radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    flex: 1;
    justify-content: center;
}

.radio-item:hover {
    border-color: #228B70;
    background: rgba(34, 139, 112, 0.05);
}

.radio-item input[type="radio"] {
    margin-right: 0.5rem;
    transform: scale(1.2);
}

.radio-item input[type="radio"]:checked + label {
    color: #228B70;
    font-weight: 600;
}

.radio-item:has(input[type="radio"]:checked) {
    border-color: #228B70;
    background: rgba(34, 139, 112, 0.1);
    box-shadow: 0 0 0 3px rgba(34, 139, 112, 0.1);
}

/* ===== DYNAMIC CONTACT ROWS ===== */
.contact-row {
    display: flex;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.contact-row:hover {
    border-color: #228B70;
    background: rgba(34, 139, 112, 0.02);
}

.contact-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.contact-row .remove-contact {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    height: fit-content;
}

.contact-row .remove-contact:hover {
    background: #c82333;
    transform: translateY(-1px);
}

.add-contact-btn {
    background: #28a745;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    margin-top: 1rem;
}

.add-contact-btn:hover {
    background: #218838;
    transform: translateY(-1px);
}

/* ===== SLIDER INPUT SYNC ===== */
.slider-input-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.slider-input-group .form-control {
    width: 100px;
    text-align: center;
}

.slider-input-group .slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.slider-input-group .slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #228B70;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.slider-input-group .slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #228B70;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== MULTI-SELECT AMENITIES ===== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.amenity-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.amenity-item:hover {
    border-color: #228B70;
    background: rgba(34, 139, 112, 0.05);
}

.amenity-item input[type="checkbox"] {
    margin-right: 0.75rem;
    transform: scale(1.2);
}

.amenity-item:has(input[type="checkbox"]:checked) {
    border-color: #228B70;
    background: rgba(34, 139, 112, 0.1);
}

.amenity-item .amenity-icon {
    margin-right: 0.5rem;
    color: #6c757d;
    font-size: 1.1rem;
}

.amenity-item:has(input[type="checkbox"]:checked) .amenity-icon {
    color: #228B70;
}

/* ===== CHARACTER COUNTER ===== */
.char-counter {
    text-align: right;
    font-size: 0.875rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.char-counter.warning {
    color: #ffc107;
}

.char-counter.danger {
    color: #dc3545;
}

/* ===== PASSWORD STRENGTH ===== */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.strength-fill.weak {
    background: #dc3545;
    width: 25%;
}

.strength-fill.fair {
    background: #ffc107;
    width: 50%;
}

.strength-fill.good {
    background: #17a2b8;
    width: 75%;
}

.strength-fill.strong {
    background: #28a745;
    width: 100%;
}

.strength-text {
    font-size: 0.875rem;
    font-weight: 500;
}

.strength-text.weak {
    color: #dc3545;
}

.strength-text.fair {
    color: #ffc107;
}

.strength-text.good {
    color: #17a2b8;
}

.strength-text.strong {
    color: #28a745;
}

/* ===== SELECT2 AMENITIES STYLING ===== */
.select2-container--default {
    width: 100% !important;
}

.select2-container--default .select2-selection--multiple {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    min-height: 55px !important;
    padding: 8px !important;
    background: white !important;
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.3s ease !important;
}

.select2-container--default .select2-selection--multiple:hover {
    border-color: #228B70 !important;
}

.select2-container--default .select2-selection--multiple:focus {
    border-color: #228B70 !important;
    box-shadow: 0 0 0 0.2rem rgba(34, 139, 112, 0.25) !important;
    outline: none !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background: linear-gradient(135deg, #228B70, #1e7a5e) !important;
    border: 1px solid #228B70 !important;
    border-radius: 8px !important;
    color: white !important;
    padding: 6px 12px !important;
    margin: 2px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    line-height: 1.2 !important;
    float: none !important;
    position: relative !important;
    box-shadow: 0 2px 4px rgba(34, 139, 112, 0.2) !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(34, 139, 112, 0.3) !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: white !important;
    font-weight: bold !important;
    font-size: 12px !important;
    line-height: 1 !important;
    padding: 0 !important;
    border: none !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border-radius: 50% !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    position: absolute !important;
    top: -2px !important;
    left: -2px !important;
    z-index: 10 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #ff6b6b !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
}

.select2-container--default .select2-search--inline {
    flex: 1 !important;
    min-width: 150px !important;
    margin: 0 !important;
}

.select2-container--default .select2-search--inline .select2-search__field {
    border: none !important;
    outline: none !important;
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    min-width: 150px !important;
    background: transparent !important;
    color: #495057 !important;
    font-weight: 400 !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #6c757d !important;
    font-size: 1rem !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
    position: absolute !important;
    pointer-events: none !important;
    font-style: italic !important;
}

.select2-container--default .select2-dropdown {
    border: 2px solid #e9ecef !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
    margin-top: 4px !important;
}

.select2-container--default .select2-results__option {
    padding: 12px 16px !important;
    font-size: 1rem !important;
    line-height: 1.4 !important;
    transition: all 0.2s ease !important;
}

.select2-container--default .select2-results__option--highlighted {
    background: linear-gradient(135deg, #228B70, #1e7a5e) !important;
    color: white !important;
    transform: translateX(2px) !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background: #e8f5e8 !important;
    color: #228B70 !important;
    font-weight: 500 !important;
}

.select2-container--default .select2-results__option[aria-selected=true]:before {
    content: "✓ " !important;
    color: #228B70 !important;
    font-weight: bold !important;
}

/* ===== TERMS AND CONDITIONS CHECKBOX ===== */
.form-check {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    padding: 0 !important;
    margin-bottom: 0 !important;
}

.form-check-input {
    margin-top: 0.25rem !important;
    margin-right: 0 !important;
    flex-shrink: 0 !important;
    width: 18px !important;
    height: 18px !important;
}

.form-check-label {
    flex: 1 !important;
    margin-bottom: 0 !important;
    padding-left: 0 !important;
    font-size: 1rem !important;
    line-height: 1.5 !important;
    color: #495057 !important;
}

.form-check-label a {
    color: #0c5460 !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    border-bottom: 1px solid transparent !important;
    transition: all 0.3s ease !important;
}

.form-check-label a:hover {
    color: #228B70 !important;
    border-bottom-color: #228B70 !important;
    text-decoration: none !important;
}

/* ===== STEP NAVIGATION ===== */
.step-navigation {
    display: flex;
    justify-content: space-between; /* Previous on left, Next on right */
    align-items: center;
    padding: 2rem 3rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    gap: 1rem; /* Add gap between buttons */
}

.btn-step {
    padding: 0.875rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 120px;
}

.btn-prev {
    background: #6c757d;
    color: white;
    display: none; /* Hide by default, JavaScript will show when needed */
}

.btn-prev:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-next {
    background: #228B70;
    color: white;
}

.btn-next:hover {
    background: #1e7a5e;
    transform: translateY(-1px);
}

.btn-submit {
    background: linear-gradient(135deg, #228B70, #28a745);
    color: white;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #1e7a5e, #218838);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(34, 139, 112, 0.3);
}

.btn-step:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== LOADING OVERLAY ===== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top: 4px solid #228B70;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 1rem;
    text-align: center;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    border: 1px solid #c3e6cb;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.success-message .success-icon {
    font-size: 3rem;
    color: #28a745;
    margin-bottom: 1rem;
}

.success-message h3 {
    color: #155724;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.success-message p {
    color: #155724;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.success-message .application-number {
    background: white;
    border: 2px solid #28a745;
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    color: #155724;
    display: inline-block;
}

/* ===== HONEYPOT FIELD ===== */
.honeypot-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

/* ===== TOOLTIPS ===== */
.tooltip-trigger {
    position: relative;
    cursor: help;
    color: #6c757d;
    margin-left: 0.5rem;
}

.tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    margin-bottom: 0.5rem;
}

.tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.tooltip-trigger:hover .tooltip {
    opacity: 1;
    visibility: visible;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Mobile Portrait (320px - 479px) */
@media (max-width: 479px) {
    .society-hero {
        padding: 100px 0 60px;
    }
    
    .society-hero h1 {
        font-size: 2.5rem;
    }
    
    .society-hero p {
        font-size: 1.1rem;
    }
    
    .society-form-container {
        margin: -30px 15px 30px;
        border-radius: 15px;
    }
    
    .form-step {
        padding: 2rem 1.5rem;
    }
    
    .form-step h2 {
        font-size: 1.5rem;
    }
    
    .stepper-progress {
        flex-direction: column;
        gap: 1rem;
    }
    
    .stepper-progress::before {
        display: none;
    }
    
    .step-circle {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
        max-width: 80px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .contact-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .step-navigation {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .btn-step {
        width: 100%;
        padding: 1rem;
    }
}

/* Mobile Landscape (480px - 767px) */
@media (min-width: 480px) and (max-width: 767px) {
    .society-hero {
        padding: 120px 0 70px;
    }
    
    .society-hero h1 {
        font-size: 3rem;
    }
    
    .society-form-container {
        margin: -40px 20px 40px;
    }
    
    .form-step {
        padding: 2.5rem;
    }
    
    .stepper-progress {
        gap: 0.5rem;
    }
    
    .step-circle {
        width: 45px;
        height: 45px;
    }
    
    .step-label {
        font-size: 0.85rem;
        max-width: 90px;
    }
    
    .radio-group {
        gap: 1rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .society-hero {
        padding: 130px 0 75px;
    }
    
    .society-hero h1 {
        font-size: 3.2rem;
    }
    
    .society-form-container {
        margin: -45px auto 45px;
        max-width: 90%;
    }
    
    .form-step {
        padding: 2.5rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .step-navigation {
        padding: 2rem 2.5rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .society-form-container {
        max-width: 900px;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .society-form-container {
        max-width: 1000px;
    }
    
    .form-step {
        padding: 3.5rem;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ===== PRINT STYLES ===== */
@media print {
    .society-hero,
    .step-navigation,
    .btn-step,
    .loading-overlay {
        display: none !important;
    }
    
    .society-form-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .form-step {
        display: block !important;
        page-break-inside: avoid;
    }
}
