/* ===== CSS VARIABLES ===== */
:root {
    /* Colors */
    --primary: #4a47e0;
    --primary-dark: #3a37c0;
    --primary-light: #e8e7ff;
    --secondary: #ff6584;
    --dark: #2d3748;
    --darker: #1a202c;
    --light: #f8f9fa;
    --gray: #718096;
    --gray-light: #e2e8f0;
    --success: #38a169;
    --danger: #e53e3e;
    --warning: #dd6b20;
    
    /* Effects */
    --shadow: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --border-radius-lg: 12px;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7ff 0%, #f0f2ff 100%);
    color: var(--dark);
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== BACKGROUND PATTERN ===== */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(74, 71, 224, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 90% 10%, rgba(74, 71, 224, 0.03) 0%, transparent 20%),
        radial-gradient(circle at 50% 80%, rgba(74, 71, 224, 0.03) 0%, transparent 20%);
    z-index: -2;
    overflow: hidden;
}

.bg-pattern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ctext x='50%25' y='50%25' font-family='Poppins' font-size='14' font-weight='700' fill='%234a47e0' fill-opacity='0.08' text-anchor='middle' dominant-baseline='middle'%3EEventofu%3C/text%3E%3C/svg%3E");
    background-size: 150px;
    opacity: 0.6;
    transform: rotate(-5deg);
    z-index: -1;
}

/* ===== LAYOUT COMPONENTS ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

/* ===== HEADER & NAVIGATION ===== */
header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo img {
    height: 50px;
}

/* ===== TYPOGRAPHY ===== */
.section-title {
    text-align: center;
    margin-top:14px;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--darker);
    margin-bottom: 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

/* ===== FORM COMPONENTS ===== */
.form-section {
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
    overflow: hidden;
    margin-bottom: 80px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.form-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--primary));
    z-index: 2;
}

.form-header {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 25px 30px;
    position: relative;
    overflow: hidden;
}

.form-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        to bottom right,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.1) 100%
    );
    transform: rotate(30deg);
    z-index: 1;
}

.form-header h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

.form-header p {
    font-size: 0.95rem;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.form-body {
    padding: 40px 30px;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.form-group {
    flex: 1 0 300px;
    padding: 0 15px;
    margin-bottom: 25px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--darker);
}

.form-control {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-control:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(74, 71, 224, 0.15),
        inset 0 1px 3px rgba(0, 0, 0, 0.05);
    background: white;
}

/* ===== FORM VALIDATION ===== */
.form-control.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.form-control.valid {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.15);
}

.error-message {
    color: var(--danger);
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.required::after {
    content: " *";
    color: var(--danger);
}

/* ===== FORM SECTIONS ===== */
.form-section-title {
    font-size: 1.3rem;
    margin: 30px 0 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--gray-light);
    color: var(--primary);
    font-weight: 600;
    position: relative;
}

.form-section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--primary);
}

/* ===== STEP WIZARD ===== */
.step-wizard {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-wizard::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gray-light);
    z-index: 1;
    border-radius: 2px;
}

.step {
    position: relative;
    text-align: center;
    z-index: 2;
    flex: 1;
}

.step-number {
    width: 34px;
    height: 34px;
    background: #fff;
    border: 2px solid var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    color: var(--gray);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step.active .step-number {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 10px rgba(74, 71, 224, 0.3);
}

.step.completed .step-number {
    border-color: var(--success);
    background: var(--success);
    color: white;
    box-shadow: 0 4px 10px rgba(56, 161, 105, 0.3);
}

.step-title {
    font-size: 0.9rem;
    color: var(--gray);
    font-weight: 500;
}

.step.active .step-title {
    color: var(--primary);
    font-weight: 600;
}

.step.completed .step-title {
    color: var(--success);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    width: 100%;
    background: var(--gray-light);
    border-radius: 50px;
    height: 8px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress {
    width: 0%;
    height: 8px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 50px;
    transition: width 0.5s ease;
    position: relative;
    overflow: hidden;
}

.progress::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ===== SPECIAL FORM ELEMENTS ===== */
.file-upload {
    border: 2px dashed var(--gray-light);
    border-radius: var(--border-radius);
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(248, 249, 250, 0.7);
    position: relative;
    overflow: hidden;
}

.file-upload::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 71, 224, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.file-upload:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.file-upload:hover::before {
    opacity: 1;
}

.file-upload i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.file-upload p {
    color: var(--gray);
    font-weight: 500;
    margin-bottom: 8px;
}

.file-info {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
}

.map-container {
    height: 200px;
    background: var(--light);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    position: relative;
    overflow: hidden;
}

.map-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(74, 71, 224, 0.05) 0%, transparent 50%);
    opacity: 0;
    transition: var(--transition);
}

.map-container:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.map-container:hover::before {
    opacity: 1;
}

.map-container i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 12px;
}

.map-container p {
    color: var(--gray);
    font-weight: 500;
}

/* ===== CHIP COMPONENTS ===== */
.chip-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.chip {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 8px 15px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.chip i {
    margin-left: 8px;
    cursor: pointer;
    opacity: 0.7;
    transition: var(--transition);
}

.chip i:hover {
    opacity: 1;
}

/* ===== BUTTON COMPONENTS ===== */
.btn {
    padding: 14px 25px;
    font-size: 1rem;
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: var(--transition);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 10px rgba(74, 71, 224, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    box-shadow: 0 6px 15px rgba(74, 71, 224, 0.4);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary);
    border: 1px solid var(--primary);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background: var(--primary-light);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.btn-full {
    width: 100%;
}

.btn-verify {
    background: var(--success);
    color: white;
    padding: 10px 15px;
    margin-left: 10px;
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    white-space: nowrap;
    box-shadow: 0 2px 5px rgba(56, 161, 105, 0.3);
}

.btn-verify:hover {
    background: #2f855a;
    box-shadow: 0 4px 10px rgba(56, 161, 105, 0.4);
    transform: translateY(-2px);
}

/* ===== FORM NAVIGATION ===== */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--gray-light);
}

/* ===== SUCCESS SECTION ===== */
.success-section {
    text-align: center;
    padding: 100px 0;
    display: none;
    position: relative;
    z-index: 1;
}

.success-icon {
    font-size: 80px;
    color: var(--success);
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(56, 161, 105, 0.3));
}

.success-section h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    color: var(--darker);
}

.success-section p {
    color: var(--gray);
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ===== UTILITY CLASSES ===== */
.phone-input-container {
    display: flex;
    gap: 10px;
}

.phone-input-container .form-control {
    flex: 1;
}

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    color: var(--gray);
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--darker);
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.8rem;
    font-weight: normal;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* ===== MULTI-SELECT STYLING ===== */
select[multiple] {
    height: 120px;
    padding: 10px;
}

select[multiple] option {
    padding: 8px 10px;
    border-bottom: 1px solid var(--gray-light);
}

select[multiple] option:checked {
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

/* ===== MAP MODAL ===== */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.map-modal-content {
    background: white;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 800px;
    height: 70%;
    padding: 24px;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.map-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.map-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--darker);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--danger);
}

#map {
    height: calc(100% - 60px);
    width: 100%;
    border-radius: var(--border-radius);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .form-row {
        flex-direction: column;
    }
    
    .step-wizard {
        flex-direction: column;
        gap: 20px;
    }
    
    .step-wizard::before {
        display: none;
    }
    
    .phone-input-container {
        flex-direction: column;
    }
    
    .btn-verify {
        margin-left: 0;
        margin-top: 10px;
    }
    
    .section {
        padding: 50px 0;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .form-body {
        padding: 30px 20px;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 16px;
    }
    
    .form-navigation .btn {
        width: 100%;
    }
}
/* Location Preview Styles */
.selected-location-info {
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: var(--border-radius);
    padding: 15px;
    margin-top: 15px;
}

.location-preview {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--success);
    font-weight: 600;
}

/* Map Modal Footer */
.map-modal-footer {
    padding: 15px;
    border-top: 1px solid var(--gray-light);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

@media (max-width: 600px) {
    .container {
        padding: 0 15px;
    }
    
    .section {
        padding: 40px 0;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .section-title p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .form-section {
        margin-bottom: 40px;
        border-radius: var(--border-radius);
    }
    
    .form-header {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 1.5rem;
    }
    
    .form-body {
        padding: 25px 20px;
    }
    
    .form-group {
        flex: 1 0 100%;
        padding: 0 10px;
        margin-bottom: 20px;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .form-section-title {
        font-size: 1.2rem;
        margin: 25px 0 15px;
    }
    
    /* UPDATED STEP WIZARD - HORIZONTAL LAYOUT */
    .step-wizard {
        flex-direction: row;
        justify-content: space-between;
        position: relative;
        margin-bottom: 30px;
    }
    
    .step-wizard::before {
        content: '';
        position: absolute;
        top: 15px;
        left: 0;
        right: 0;
        height: 4px;
        background: var(--gray-light);
        z-index: 1;
        border-radius: 2px;
        display: block;
    }
    
    .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        flex: 1;
        position: relative;
        z-index: 2;
    }
    
    .step-number {
        margin-bottom: 8px;
        width: 30px;
        height: 30px;
        font-size: 0.9rem;
    }
    
    .step-title {
        font-size: 0.75rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 80px;
    }
    
    .progress-bar {
        height: 6px;
        margin-bottom: 20px;
    }
    
    .file-upload {
        padding: 20px 15px;
    }
    
    .file-upload i {
        font-size: 32px;
        margin-bottom: 10px;
    }
    
    .map-container {
        height: 150px;
    }
    
    .map-container i {
        font-size: 32px;
    }
    
    .chip-container {
        gap: 8px;
    }
    
    .chip {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
        width: 100%;
    }
    
    .phone-input-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-verify {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 12px;
        margin-top: 35px;
        padding-top: 25px;
    }
    
    .form-navigation .btn {
        order: 2;
    }
    
    .form-navigation .btn-secondary {
        order: 1;
    }
    
    .success-section {
        padding: 60px 20px;
    }
    
    .success-icon {
        font-size: 60px;
        margin-bottom: 20px;
    }
    
    .success-section h2 {
        font-size: 1.8rem;
    }
    
    .success-section p {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .tooltip .tooltiptext {
        width: 150px;
        margin-left: -75px;
        font-size: 0.75rem;
    }
    
    .map-modal-content {
        width: 95%;
        height: 80%;
        padding: 15px;
        margin: 10px;
    }
    
    .map-modal-header h3 {
        font-size: 1.3rem;
    }
    
    #map {
        height: calc(100% - 50px);
    }
    
    .map-modal-footer {
        padding: 12px;
        flex-direction: column;
    }
    
    .map-modal-footer .btn {
        margin-bottom: 8px;
    }
    
    .selected-location-info {
        padding: 12px;
        margin-top: 12px;
    }
    
    .location-preview {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    /* Hide decorative elements on very small screens */
    .bg-pattern::before {
        background-size: 100px;
        opacity: 0.4;
    }
    
    .form-section::before {
        height: 3px;
    }
    
    /* Improve touch targets */
    .form-control, .btn, .chip, .file-upload {
        min-height: 44px;
    }
    
    /* Adjust multiple select */
    select[multiple] {
        height: 100px;
    }
}