/* ==============================================================
   iGrroww - Modern Project Requirement Form CSS
   ============================================================== */

/* 1. Google Fonts Import (Modern Agency Look) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* 2. Base Reset & Body Settings */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    /* Soft light gray background so the white form pops out */
    background-color: #f4f7f8; 
    color: #1e293b;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

/* 3. Main Form Container */
.form-container {
    background: #ffffff;
    width: 100%;
    max-width: 680px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

/* 4. Form Header */
.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-wrapper img {
    max-height: 45px;
    margin-bottom: 15px;
}

.form-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 14px;
    color: #64748b;
}

/* 5. Progress Bar Setup */
.progress-container {
    margin-bottom: 35px;
}

.progress-bar-bg {
    width: 100%;
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    /* Gradient Brand Color for Progress */
    background: linear-gradient(90deg, #4f46e5, #818cf8);
    border-radius: 10px;
    transition: width 0.4s ease-in-out;
    width: 0%;
}

.progress-text {
    font-size: 12px;
    color: #64748b;
    margin-top: 8px;
    text-align: right;
    font-weight: 500;
}

/* 6. Step Content & Animations */
.step-content {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

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

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

.step-title {
    font-size: 20px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 4px;
}

.step-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

/* 7. Form Groups & Inputs */
.form-group {
    margin-bottom: 20px;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #334155;
    margin-bottom: 8px;
}

.required {
    color: #ef4444; /* Red star for required fields */
}

input[type="text"], 
input[type="email"], 
input[type="tel"], 
input[type="url"], 
select, 
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 15px;
    color: #0f172a;
    background-color: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
}

/* Nice Focus Ring Effect */
input:focus, 
select:focus, 
textarea:focus {
    border-color: #4f46e5;
    background-color: #ffffff;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
}

/* 8. Service Selection Cards (Replaced standard checkboxes) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 10px;
}

.service-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #ffffff;
    user-select: none;
}

.service-card input[type="checkbox"] {
    display: none; /* Hide default checkbox */
}

.service-icon-container {
    width: 54px;
    height: 54px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    transition: all 0.3s ease;
    color: #475569;
}

.service-icon-container svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
}

.service-card p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.service-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Active State for Selected Cards */
.service-card.selected {
    border-color: #4f46e5;
    background-color: #f5f3ff;
}

.service-card.selected .service-icon-container {
    background: #4f46e5;
    color: #ffffff;
}

/* 9. Small Custom Checkboxes (For Website Features) */
.checkbox-options-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.custom-checkbox {
    display: flex;
    align-items: center;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    color: #334155;
    font-weight: 500;
    transition: 0.2s;
    background: #f8fafc;
}

.custom-checkbox input {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: #4f46e5;
    cursor: pointer;
}

.custom-checkbox:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

/* 10. Buttons & Form Footer */
.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn-prev {
    background-color: #f1f5f9;
    color: #475569;
}

.btn-prev:hover {
    background-color: #e2e8f0;
    color: #1e293b;
}

.btn-next {
    background-color: #4f46e5;
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.2);
}

.btn-next:hover {
    background-color: #4338ca;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}

.btn-submit {
    background-color: #10b981; /* Green color for finish */
    color: white;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.btn-submit:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

/* 11. Success Screen (Post Submission) */
#successScreen {
    text-align: center;
    padding: 30px 0;
    animation: fadeIn 0.5s ease;
}

.success-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: #d1fae5;
    color: #10b981;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 24px;
}

.success-icon-wrapper svg {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.success-desc {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 35px;
    line-height: 1.6;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366;
    color: white;
    padding: 16px 32px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    background-color: #1ebe57;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* 12. Responsive Design (Mobile Friendly) */
@media (max-width: 600px) {
    .form-container {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .form-grid-2 {
        grid-template-columns: 1fr;
        gap: 0px;
    }

    .checkbox-options-grid {
        grid-template-columns: 1fr; /* Single column for small screens */
    }

    .services-grid {
        grid-template-columns: 1fr; /* Stack service cards on mobile */
    }
    
    .btn {
        padding: 12px 20px;
    }
}