
/*********** PARTIE FORM CSS ****************/
.promo-banner {
            background: linear-gradient(135deg, #ecfdf5, #d1fae5);
            border-radius: 14px;
            padding: 24px;
            text-align: center;
            border: 2px solid #a7f3d0;
        }
        .promo-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: #059669;
            color: #fff;
            font-size: 24px;
            margin-bottom: 12px;
        }

/* =========================================================
   FORM STEPS
   ========================================================= */

.form-step {
    display: block;
}

.form-step.d-none {
    display: none !important;
}


/* =========================================================
   CONTACT FORM 7 CLEANUP
   ========================================================= */

.form-container {
    margin: 40px 0px !important;
}

.wpcf7 p {
    margin: 0 !important;
    padding: 0 !important;
}

.wpcf7 br {
    display: none;
}

.wpcf7-form-control-wrap {
    display: block;
    width: 100%;
}


/* =========================================================
   PROGRESS BAR
   ========================================================= */

.progress-bar-custom {
    height: 5px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
}

.bg-gradient-primary {
    background: linear-gradient(
        135deg,
        #4f46e5,
        #4338ca
    );
}


/* =========================================================
   INPUTS
   ========================================================= */

.form-control,
.form-select {
    width: 100% !important;
    min-height: 48px;

    border-radius: 10px;

    box-sizing: border-box;

    border: 1px solid #d1d5db !important;

    background: #fff !important;
    color: #111827 !important;

    font-family: inherit !important;
    font-size: 14px !important;

    box-shadow: none !important;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}


/* Focus */

.form-control:focus,
.form-select:focus {
    border-color: #6366f1 !important;

    outline: none !important;

    box-shadow:
        0 0 0 3px rgba(99, 102, 241, .10) !important;
}


/* Placeholder */

.form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}


/* Textarea */

textarea.form-control {
    min-height: 120px;

    resize: vertical;

    line-height: 1.5;
}


/* File */

input[type="file"].form-control {
    min-height: 48px;

    padding: 9px 12px;

    cursor: pointer;

    font-size: 13px !important;
}


/* =========================================================
   LABELS
   ========================================================= */

.form-label {
    display: block;

    margin-bottom: 6px !important;

    color: #111827;

    font-weight: 600;

    font-size: 14px;

    line-height: 1.4;
}

.required-star {
    color: #ef4444;

    font-weight: 700;

    margin-left: 2px;
}


/* =========================================================
   NAVIGATION ROW
   ========================================================= */

.form-step .d-flex.gap-2 {
    display: flex !important;

    align-items: stretch !important;

    width: 100% !important;

    gap: 10px !important;
}


/* =========================================================
   NEXT BUTTON
   ========================================================= */

.form-step .btn-next {
    flex: 1 1 auto !important;

    width: auto !important;

    min-width: 0 !important;

    min-height: 50px !important;
    height: 50px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    gap: 4px;

    border: 0 !important;

    border-radius: 10px !important;

    padding: 12px 20px !important;

    background: linear-gradient(
        135deg,
        #4f46e5,
        #4338ca
    ) !important;

    color: #fff !important;

    font-family: inherit !important;

    font-size: 15px !important;

    font-weight: 600 !important;

    line-height: 1.2 !important;

    text-align: center !important;

    white-space: nowrap !important;

    box-sizing: border-box !important;

    cursor: pointer;

    box-shadow: none !important;

    transition:
        opacity .2s ease,
        transform .2s ease;
}

.form-step .btn-next:hover {
    opacity: .92;
}


/* =========================================================
   RETURN / PREVIOUS BUTTON
   ========================================================= */

.form-step .prev-step {
    flex: 0 0 54px !important;

    width: 54px !important;

    min-width: 54px !important;

    height: 50px !important;

    min-height: 50px !important;

    display: inline-flex !important;

    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;

    margin: 0 !important;

    border: 1px solid #d1d5db !important;

    border-radius: 10px !important;

    background: #fff !important;

    color: #4b5563 !important;

    font-family: inherit !important;

    font-size: 15px !important;

    line-height: 1 !important;

    box-sizing: border-box !important;

    cursor: pointer;

    box-shadow: none !important;

    transition:
        background .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.form-step .prev-step:hover {
    background: #f9fafb !important;

    border-color: #9ca3af !important;

    color: #374151 !important;
}


/* =========================================================
   SUBMIT BUTTON
   ========================================================= */

.form-step input.wpcf7-submit.btn-submit {
    flex: 1 1 auto !important;

    width: auto !important;

    min-width: 0 !important;

    min-height: 50px !important;

    height: 50px !important;

    display: flex !important;

    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    padding: 12px 20px !important;

    border: 0 !important;

    border-radius: 10px !important;

    background: linear-gradient(
        135deg,
        #10b981,
        #059669
    ) !important;

    color: #fff !important;

    font-family: inherit !important;

    font-size: 15px !important;

    font-weight: 600 !important;

    line-height: 1.2 !important;

    text-align: center !important;

    white-space: nowrap !important;

    box-sizing: border-box !important;

    cursor: pointer !important;

    appearance: none !important;

    -webkit-appearance: none !important;

    box-shadow: none !important;

    outline: none !important;

    transition:
        opacity .2s ease;
}

.form-step input.wpcf7-submit.btn-submit:hover {
    opacity: .92;

    background: linear-gradient(
        135deg,
        #10b981,
        #059669
    ) !important;
}

.form-step input.wpcf7-submit.btn-submit:focus {
    outline: none !important;

    box-shadow: none !important;
}


/* =========================================================
   CF7 SUBMIT WRAPPER
   ========================================================= */

.form-step .wpcf7-form-control-wrap:has(.btn-submit) {
    display: contents !important;
}

.form-step .wpcf7-submit {
    margin: 0 !important;
}


/* =========================================================
   PROFILE CHOICE
   ========================================================= */

.form-choice {
    width: 100%;
}

.choice-header {
    text-align: center;

    margin-bottom: 24px;
}

.choice-header h4 {
    margin: 0 0 8px !important;

    color: #111827;

    font-weight: 700;

    font-size: 20px;

    line-height: 1.35;
}

.choice-header h4 i {
    color: #4f46e5;
}

.choice-header p {
    margin: 0 !important;

    color: #6b7280;

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   PROFILE CHOICE GRID
   ========================================================= */

.profile-choice-grid {
    display: flex;

    flex-direction: column;

    gap: 12px;

    width: 100%;
}


/* =========================================================
   PROFILE CHOICE BUTTON
   ========================================================= */

.profile-choice-btn {
    width: 100% !important;

    min-height: 96px !important;

    display: flex !important;

    align-items: center !important;

    gap: 16px !important;

    padding: 18px 20px !important;

    border: 1px solid #e5e7eb !important;

    border-radius: 14px !important;

    background: #fff !important;

    color: #111827 !important;

    text-align: left !important;

    cursor: pointer;

    box-sizing: border-box !important;

    box-shadow: none !important;

    outline: none !important;

    transition:
        border-color .2s ease,
        background-color .2s ease;
}


/* Hover */

.profile-choice-btn:hover {
    border-color: #a5b4fc !important;

    background: #fafaff !important;
}


/* Active */

.profile-choice-btn.active {
    border-color: #6366f1 !important;

    background: #f5f3ff !important;

    box-shadow:
        0 0 0 1px rgba(99, 102, 241, .08) !important;
}


/* =========================================================
   PROFILE ICON
   ========================================================= */

.profile-choice-icon {
    flex: 0 0 54px;

    width: 54px;

    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background: #eef2ff;

    color: #4f46e5;

    font-size: 21px;

    transition:
        background-color .2s ease,
        color .2s ease;
}


/* Active icon */

.profile-choice-btn.active .profile-choice-icon {
    background: #4f46e5;

    color: #fff;
}


/* =========================================================
   PROFILE TEXT
   ========================================================= */

.profile-choice-content {
    flex: 1;

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 4px;
}

.profile-choice-content strong {
    color: #111827;

    font-size: 16px;

    font-weight: 700;

    line-height: 1.3;
}

.profile-choice-content small {
    color: #6b7280;

    font-size: 13px;

    line-height: 1.45;
}


/* =========================================================
   PROFILE ARROW
   ========================================================= */

.profile-choice-arrow {
    flex: 0 0 auto;

    color: #9ca3af;

    font-size: 14px;

    transition:
        color .2s ease,
        transform .2s ease;
}


/* Hover / Active arrow */

.profile-choice-btn:hover .profile-choice-arrow,
.profile-choice-btn.active .profile-choice-arrow {
    color: #4f46e5;

    transform: translateX(3px);
}


/* =========================================================
   SOLUTION SPECIFIC OPTIONS
   ========================================================= */

.solution-specific-options {
    width: 100%;
}

.solution-specific-options.d-none {
    display: none !important;
}


/* =========================================================
   CHECKBOX GROUPS
   ========================================================= */

.wpcf7-checkbox {
    display: grid !important;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 8px;

    width: 100%;
}

.wpcf7-checkbox .wpcf7-list-item {
    margin: 0 !important;

    width: 100%;
}

.wpcf7-checkbox label {
    display: flex !important;

    align-items: center;

    gap: 8px;

    min-height: 42px;

    padding: 9px 11px;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    background: #fff;

    color: #374151;

    font-size: 13px;

    line-height: 1.35;

    cursor: pointer;

    box-sizing: border-box;

    transition:
        border-color .2s ease,
        background-color .2s ease;
}

.wpcf7-checkbox label:hover {
    border-color: #a5b4fc;

    background: #fafaff;
}

.wpcf7-checkbox input[type="checkbox"] {
    flex: 0 0 auto;

    width: 15px;

    height: 15px;

    margin: 0;

    accent-color: #4f46e5;

    cursor: pointer;
}


/* =========================================================
   SPACING
   ========================================================= */

.mb-4 {
    margin-bottom: 1rem !important;
}

.mb-3 {
    margin-bottom: .75rem !important;
}

.mt-3 {
    margin-top: .75rem !important;
}

.mt-4 {
    margin-top: 1rem !important;
}

.my-4 {
    margin-top: 1rem !important;

    margin-bottom: 1rem !important;
}

hr {
    margin: 1rem 0 !important;
}


/* =========================================================
   FILE UPLOAD
   ========================================================= */

#project_file {
    width: 100% !important;

    max-width: 100% !important;

    overflow: hidden;
}


/* =========================================================
   VALIDATION
   ========================================================= */
.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #ef4444 !important; /* Standard red border */
    box-shadow: none !important; /* Removes outer ring completely */
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {

    /* =====================================================
       CONTAINER
       ===================================================== */

    .card-body.p-5 {
        padding: 15px !important;
    }


    /* =====================================================
       INPUTS
       ===================================================== */

    .form-control,
    .form-select {
        min-height: 44px;

        font-size: 14px !important;
    }

    textarea.form-control {
        min-height: 110px;
    }

    input[type="file"].form-control {
        min-height: 44px;

        font-size: 13px !important;
    }


    /* =====================================================
       CHOICE HEADER
       ===================================================== */

    .choice-header {
        margin-bottom: 18px;
    }

    .choice-header h4 {
        font-size: 18px;

        line-height: 1.35;
    }

    .choice-header p {
        font-size: 13px;
    }


    /* =====================================================
       PROFILE CHOICE
       ===================================================== */

    .profile-choice-btn {
        min-height: 88px !important;

        padding: 14px !important;

        gap: 11px !important;

        border-radius: 12px !important;
    }


    .profile-choice-icon {
        flex: 0 0 44px;

        width: 44px;

        height: 44px;

        border-radius: 10px;

        font-size: 18px;
    }


    .profile-choice-content strong {
        font-size: 14px;
    }


    .profile-choice-content small {
        font-size: 11.5px;

        line-height: 1.4;
    }


    .profile-choice-arrow {
        font-size: 12px;
    }


    /* =====================================================
       LABELS
       ===================================================== */

    .form-label {
        font-size: 13px;
    }


    /* =====================================================
       CHECKBOXES
       ===================================================== */

    .wpcf7-checkbox {
        grid-template-columns: 1fr;

        gap: 7px;
    }

    .wpcf7-checkbox label {
        min-height: 40px;

        padding: 8px 10px;

        font-size: 12px;
    }


    /* =====================================================
       NAVIGATION
       ===================================================== */

    .form-step .d-flex.gap-2 {
        gap: 8px !important;
    }


    .form-step .btn-next {
        min-height: 46px !important;

        height: 46px !important;

        padding: 10px 16px !important;

        font-size: 14px !important;
    }


    .form-step .prev-step {
        flex: 0 0 48px !important;

        width: 48px !important;

        min-width: 48px !important;

        height: 46px !important;

        min-height: 46px !important;
    }


    .form-step input.wpcf7-submit.btn-submit {
        min-height: 46px !important;

        height: 46px !important;

        padding: 10px 14px !important;

        font-size: 14px !important;
    }

}



/* Checkbox Group Validation Styles */
.is-invalid-group {
    border: 1px solid #dc3545;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(220, 53, 69, 0.03);
}

.is-valid-group {
    border: 1px solid #198754;
    padding: 12px;
    border-radius: 8px;
    background-color: rgba(25, 135, 84, 0.03);
}









/* =====================================================
   SITE TYPE SELECTION CARDS & CUSTOM INPUTS
   ===================================================== */

/* Outer Switch Container */
.site-type-switch {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 10px;
}

/* Individual Card Option Button */
.site-type-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    outline: none;
    box-sizing: border-box;
}

.site-type-option:hover {
    border-color: #c7d2fe;
}

/* Selected / Active State */
.site-type-option.active {
    border-color: #6366f1;
    background-color: #f5f3ff;
}

/* Left Content Wrapper (Icon + Text) */
.site-type-option {
    display: flex;
    align-items: center;
}

/* Soft Icon Box Container */
.site-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 16px;
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

.site-type-option.active .site-type-icon {
    background-color: #e0e7ff;
}

/* Text Container */
.site-type-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.site-type-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.site-type-content small {
    display: block;
    font-size: 0.85rem;
    color: #64748b;
    margin-top: 2px;
}

/* Circle Checkmark Box (Right Side) */
.site-type-check {
    width: 26px;
    height: 26px;
    border: 1.5px solid #cbd5e1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: transparent;
    transition: all 0.2s ease;
    flex-shrink: 0;
    background-color: #ffffff;
}

/* Check Icon Active State */
.site-type-option.active .site-type-check {
    background-color: #6366f1;
    border-color: #6366f1;
    color: #ffffff;
}

/* =====================================================
   DROPDOWN & INPUT FIELD STYLING
   ===================================================== */

.form-label {
    display: block;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 8px;
}

.required-star {
    color: #ef4444;
    font-weight: bold;
}

/* Dropdown Field with Flag Arrow Ribbon */
.form-select {
    width: 100%;
    padding: 14px 48px 14px 18px;
    font-size: 1rem;
    color: #1e293b;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background-color: #ffffff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='20' viewBox='0 0 24 24' fill='%3C0f172a'%3E%3Cpath d='M19 21l-7-5-7 5V3h14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    outline: none;
    transition: border-color 0.2s ease;
}

.form-select:focus {
    border-color: #6366f1;
}









/* =========================================================
   OVERRIDE CONTACT FORM 7 DEFAULT RED BORDERS
   ========================================================= */

/* Fixes default CF7 invalid inputs */
.wpcf7 .wpcf7-not-valid,
.wpcf7 input.wpcf7-not-valid,
.wpcf7 select.wpcf7-not-valid,
.wpcf7 textarea.wpcf7-not-valid {
    border: 1px solid #fca5a5 !important; /* Thinner, soft red border */
    box-shadow: none !important;           /* Removes native glow/outline */
    outline: none !important;
}

/* Optional: Subtle focus state when typing inside an invalid input */
.wpcf7 .wpcf7-not-valid:focus {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.1) !important;
}