body {
    font-family: 'Noto Sans Devanagari', sans-serif;
    margin: 0;
    background: linear-gradient(to bottom, #fff7ed, #ffffff);
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
header {
    background: linear-gradient(to right, #ea580c, #f97316);
    color: white;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-title h1 {
    margin: 0;
    font-size: 2.2em;
    font-weight: 700;
}

.logo-title p {
    margin: 5px 0 0;
    font-size: 1.1em;
    font-weight: 400;
}

.profile-img img {
    height: 160px;
    width: 120px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
}

/* Main Content */
main {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

/* Success Message */
.success-message {
    margin-bottom: 24px;
    padding: 16px;
    background-color: #dcfce7;
    border-left: 4px solid #16a34a;
    color: #166534;
    border-radius: 4px;
    text-align: center;
}

/* Progress Container */
.progress-container {
    margin-bottom: 32px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.step.active {
    opacity: 1;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #d1d5db;
    color: #6b7280;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.step-icon svg {
    width: 20px;
    height: 20px;
}

.step.active .step-icon {
    background-color: #ea580c;
    color: white;
}

.step-title {
    font-size: 0.75rem;
    text-align: center;
    font-weight: 600;
    color: #374151;
}

.progress-bar {
    width: 100%;
    background-color: #e5e7eb;
    height: 4px;
    border-radius: 9999px;
}

.progress-fill {
    height: 100%;
    background-color: #ea580c;
    border-radius: 9999px;
    width: 0%;
    transition: width 0.3s ease;
}

/* Form Container */
.form-container {
    background: white;
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.form-step {
    display: none;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    text-align: center;
    color: #1f2937;
    margin-bottom: 24px;
    font-size: 1.5em;
}

.selection-info {
    text-align: center;
    color: #6b7280;
    margin-bottom: 24px;
}

.selection-info span {
    font-weight: 600;
    color: #1f2937;
}

/* Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.option-btn {
    padding: 16px;
    border: 2px solid #fed7aa;
    border-radius: 8px;
    background-color: white;
    color: #1f2937;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.option-btn:hover {
    background-color: #fff7ed;
    border-color: #ea580c;
}

/* Input Group */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #fed7aa;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #ea580c;
}

/* *** विभाग निवडीसाठी शैली *** */
.input-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #fed7aa;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1em;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: border-color 0.3s ease;
    background-color: white;
    cursor: pointer;
}

.input-group select:focus {
    outline: none;
    border-color: #ea580c;
}

.input-group select option {
    font-family: 'Noto Sans Devanagari', sans-serif;
}


/* कामाच्या नावासाठी मोठा आणि आकर्षक टेक्स्टफील्ड */
#workNameInput {
    width: 100%;
    min-height: 120px;
    padding: 16px;
    border: 2px solid #fed7aa;
    border-radius: 12px;
    box-sizing: border-box;
    font-size: 1.2em;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

#workNameInput:focus {
    outline: none;
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.2);
}

/* *** येथे नवीन CSS नियम जोडला आहे *** */
#workNameInput::placeholder {
    white-space: pre-line; /* नवीन ओळींना ओळींमध्ये रूपांतरित करते */
    color: #9ca3af; /* placeholder चा रंग */
}


/* File Upload */
.file-upload-label {
    display: block;
    border: 2px dashed #fdba74;
    border-radius: 8px;
    padding: 32px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.file-upload-label:hover {
    background-color: #fff7ed;
}

.file-upload-label input[type="file"] {
    display: none;
}

.file-upload-content .upload-icon {
    margin-bottom: 8px;
    color: #ea580c;
}

.file-upload-content p {
    margin: 4px 0;
}

.file-upload-content .file-name {
    color: #16a34a;
    font-weight: 600;
    margin-top: 12px;
}

/* Button Group */
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

/* Buttons */
.prev-btn, .next-btn, .submit-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
}

.prev-btn {
    background-color: white;
    color: #ea580c;
    border: 2px solid #ea580c;
}

.prev-btn:hover {
    background-color: #fff7ed;
}

.next-btn, .submit-btn {
    background-color: #ea580c;
    color: white;
}

.next-btn:hover, .submit-btn:hover {
    background-color: #c2410c;
}

.submit-btn {
    background-color: #16a34a;
}

.submit-btn:hover {
    background-color: #15803d;
}

/* जेव्हा फक्त एक बटण असेल (जसे शेवटच्या चरणात) */
.button-group button:only-child {
    width: 100%;
}

/* Footer */
footer {
    text-align: center;
    padding: 32px 20px;
    margin-top: 48px;
    background: #1f2937;
    color: white;
}

footer p {
    margin: 5px 0;
    font-size: 0.9em;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
    }
    .profile-img {
        margin-top: 20px;
    }
    .logo-title h1 {
        font-size: 1.8em;
    }
    
    /* Progress Steps on Mobile */
    .progress-steps {
        font-size: 0.7rem;
    }
    .step-title {
        font-size: 0.6rem;
    }
    .step-icon {
        width: 35px;
        height: 35px;
    }
    .step-icon svg {
        width: 18px;
        height: 18px;
    }

    /* Form Container on Mobile */
    .form-container {
        padding: 20px;
    }
    
    /* Options Grid on Mobile - Default to 1 column */
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* SPECIFIC RULE: Village options grid should be 2 columns on mobile */
    #gavOptions {
        grid-template-columns: 1fr 1fr;
    }

    .option-btn {
        padding: 14px 10px;
        font-size: 0.95em;
    }

    /* Input fields on Mobile */
    .input-group input, .input-group select {
        padding: 14px;
        font-size: 1em;
    }

    /* Work name input on mobile */
    #workNameInput {
        min-height: 100px;
        font-size: 1.1em;
        padding: 14px;
    }
    
    /* Buttons on Mobile */
    .prev-btn, .next-btn, .submit-btn {
        padding: 14px 20px;
        font-size: 1em;
    }
}