/**
 * Diaphane Intervention Form - Custom Branding
 * Orange: #E87722 | Dark orange (hover): #D06A1E
 * Scoped to .diaphane-intervention-form to avoid affecting other GF forms
 */

/* ===== INFO NOTICES (replaced section headers) ===== */
.diaphane-intervention-form .diaphane-info-notice {
    background: #fff9f3;
    border-left: 4px solid #E87722;
    padding: 14px 18px;
    border-radius: 4px;
    line-height: 1.6;
    color: #444;
    font-size: 14px;
}

.diaphane-intervention-form .diaphane-info-notice strong {
    color: #E87722;
}

/* ===== PROGRESS BAR ===== */
.diaphane-intervention-form .gf_progressbar {
    background-color: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    height: 22px;
}

.diaphane-intervention-form .gf_progressbar_percentage {
    background-color: #E87722 !important;
    background-image: none !important;
    color: #ffffff !important;
    font-size: 12px;
    line-height: 22px;
    border-radius: 10px;
    text-align: center;
}

.diaphane-intervention-form .gf_progressbar_title {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
}

/* ===== BUTTONS ===== */
/* Next and Submit buttons */
.diaphane-intervention-form .gform_next_button,
.diaphane-intervention-form .gform_button[type="submit"] {
    background-color: #E87722 !important;
    border: 2px solid #E87722 !important;
    color: #ffffff !important;
    padding: 10px 28px !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.diaphane-intervention-form .gform_next_button:hover,
.diaphane-intervention-form .gform_button[type="submit"]:hover {
    background-color: #D06A1E !important;
    border-color: #D06A1E !important;
}

/* Previous button - neutral style */
.diaphane-intervention-form .gform_previous_button {
    background-color: #f5f5f5 !important;
    border: 2px solid #ccc !important;
    color: #E87722 !important;
    padding: 10px 28px !important;
    border-radius: 5px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.diaphane-intervention-form .gform_previous_button:hover {
    background-color: #e8e8e8 !important;
    border-color: #bbb !important;
}

/* Button container spacing */
.diaphane-intervention-form .gform_page_footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 12px;
    align-items: center;
}

/* ===== FORM FIELDS ===== */
/* Field containers */
.diaphane-intervention-form .gfield {
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
}

/* Labels */
.diaphane-intervention-form .gfield_label {
    color: #333;
    font-weight: 600;
    font-size: 14px;
}

/* Required indicator */
.diaphane-intervention-form .gfield_required {
    color: #E87722;
}

/* Input fields */
.diaphane-intervention-form input[type="text"],
.diaphane-intervention-form input[type="email"],
.diaphane-intervention-form input[type="tel"],
.diaphane-intervention-form textarea,
.diaphane-intervention-form select {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
}

.diaphane-intervention-form input[type="text"]:focus,
.diaphane-intervention-form textarea:focus {
    border-color: #E87722;
    outline: none;
    box-shadow: 0 0 0 2px rgba(232, 119, 34, 0.15);
}

/* Radio and checkbox styling */
.diaphane-intervention-form .gchoice {
    padding: 6px 0;
}

.diaphane-intervention-form .gfield_radio input[type="radio"]:checked + label,
.diaphane-intervention-form .gfield_checkbox input[type="checkbox"]:checked + label {
    color: #E87722;
    font-weight: 600;
}

/* Description text */
.diaphane-intervention-form .gfield_description {
    color: #666;
    font-style: italic;
    font-size: 13px;
    margin-top: 4px;
}

/* ===== INTRODUCTION PAGE ===== */
.diaphane-intervention-form .diaphane-intro {
    background: #fff9f3;
    border: 1px solid #f0d4b8;
    border-radius: 8px;
    padding: 24px;
    line-height: 1.7;
}

.diaphane-intervention-form .diaphane-intro p:first-child {
    font-style: italic;
    font-weight: 600;
    color: #E87722;
}

/* ===== CONFIRMATION MESSAGE ===== */
.diaphane-intervention-form .gform_confirmation_message {
    background: #fff9f3;
    border: 1px solid #f0d4b8;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.diaphane-intervention-form .gform_confirmation_message h3 {
    color: #E87722;
    margin-bottom: 16px;
}

.diaphane-intervention-form .gform_confirmation_message a {
    color: #E87722;
    text-decoration: underline;
}

/* ===== VALIDATION ERRORS ===== */
.diaphane-intervention-form .gfield_error {
    border-color: #c0392b !important;
    background-color: #fdf0ef !important;
}

.diaphane-intervention-form .validation_message {
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
}

/* ===== ACCESS DENIED ===== */
.diaphane-access-denied {
    padding: 20px;
    background: #fff3e0;
    border-left: 4px solid #E87722;
    margin: 20px 0;
    border-radius: 4px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .diaphane-intervention-form .gfield {
        padding: 10px 12px;
    }

    .diaphane-intervention-form .gform_page_footer {
        flex-direction: column;
    }

    .diaphane-intervention-form .gform_next_button,
    .diaphane-intervention-form .gform_previous_button,
    .diaphane-intervention-form .gform_button[type="submit"] {
        width: 100% !important;
        text-align: center;
    }

    .diaphane-intervention-form .diaphane-intro {
        padding: 16px;
    }
}
