/* 1. Global Reset - Sabse pehle ye hona chahiye */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden; /* Side scroll ko jadh se khatam karega */
    background: #eef2f3;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* 2. Main Content Wrapper */
#main-content {
    padding-top: 100px; /* Navbar ke liye jagah */
    width: 100%;
    display: flex;
    justify-content: center;
    min-height: 80vh;
}

/* 3. Form Card - Ise container ke andar fit kiya hai */
.form-card {
    width: 95%; 
    max-width: 900px;
    margin: 5px auto 50px auto; 
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* 4. H2 with Logo Alignment */
.reg-title-with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap; /* Mobile par logo aur text upar-niche ho jayenge agar jagah kam hui */
    gap: 15px;
    color: #d35400 !important;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #f39c12;
    padding-bottom: 15px;
}

.inner-h2-logo {
    height: 50px;
    width: auto;
    display: inline-block;
    vertical-align: middle;
    transform: translateY(2px); /* Logo ko thoda niche balance karne ke liye */
}

/* 5. Section Titles */
.section-title {
    background: #2c3e50;
    color: white;
    padding: 12px 15px;
    margin: 30px 0 15px 0;
    border-radius: 5px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
}

/* 6. Grid System - Responsive Fit */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.full-width {
    grid-column: 1 / -1; /* Ye column 1 se shuru hokar aakhri tak jayega */
}

/* Optional: Location URL ke input ko thoda alag dikhane ke liye border color */
.full-width input {
    border: 1px solid #f39c12;
    background-color: #fffdf9;
}
/* 7. Inputs - Taaki screen se bahar na nikle */
label {
    font-weight: bold;
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: #333;
}

input, select, textarea {
    width: 100% !important;
    padding: 12px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 14px;
    background-color: #fff;
}

input:focus, select:focus {
    border-color: #f39c12;
    outline: none;
    box-shadow: 0 0 5px rgba(243, 156, 18, 0.2);
}

/* 8. File Section */
.file-section {
    background: #fff9f0;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    border: 1px dashed #f39c12;
}

/* 9. Submit Button */
.btn-submit {
    background: #f39c12;
    color: white;
    border: none;
    width: 100%;
    padding: 18px;
    font-size: 18px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
    margin-top: 30px;
    transition: 0.3s ease;
}

.btn-submit:hover {
    background: #e67e22;
}
/* Spinner Animation */
.spinner {
    display: none; /* Pehle chhupa rahega */
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Jab button processing state mein ho */
.btn-submit.is-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #d35400;
    cursor: not-allowed;
}

.btn-submit.is-loading .spinner {
    display: inline-block;
}
/* 10. Mobile Responsive Tweaks */
@media (max-width: 768px) {
    .form-card {
        padding: 20px;
        width: 98%;
        margin-top: 10px;
    }
    
    .reg-title-with-logo {
        font-size: 1.3rem;
        gap: 8px;
    }
    
    .inner-h2-logo {
        height: 35px;
    }
    .full-width {
        grid-column: auto;
    }
    #main-content {
        padding-top: 80px; /* Mobile navbar height */
    }
}