/* =========================================================
   PROJECT CONTACT SECTION
   ========================================================= */

.project-contact-section {
    --green: #2da35f;
    --green-dark: #21834b;
    --green-light: #eaf7ef;
    --text: #122033;
    --text-light: #64748b;
    --border: #d9e0e7;
    --background: #f5f8f6;

    position: relative;
    overflow: hidden;

    padding: 100px 20px;
    border-top: 2px solid rgba(0, 50, 0, 0.192);
}


/* Décoration arrière */

.project-contact-section::before {
    content: "";
    position: absolute;

    width: 450px;
    height: 450px;

    top: -220px;
    right: -180px;

    border-radius: 50%;

    background: rgba(45, 163, 95, 0.07);

    pointer-events: none;
}

.project-contact-section::after {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    bottom: -160px;
    left: -130px;

    border-radius: 50%;

    background: rgba(45, 163, 95, 0.05);

    pointer-events: none;
}


/* Container */

.project-contact-container {
    position: relative;
    z-index: 2;

    width: min(100%, 1000px);

    margin: auto;
}


/* =========================================================
   HEADER
   ========================================================= */

.project-contact-header {
    max-width: 760px;

    margin: 0 auto 45px;

    text-align: center;
}


.project-contact-badge {
    display: inline-flex;

    align-items: center;
    gap: 9px;

    padding: 8px 15px;

    margin-bottom: 20px;

    border: 1px solid rgba(45, 163, 95, 0.18);

    background: rgba(45, 163, 95, 0.08);

    color: var(--green-dark);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.04em;

    text-transform: uppercase;
}


.badge-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: var(--green);

}


.project-contact-header h1 {
    margin: 0;

    color: var(--text);

    font-size: clamp(26px, 5vw, 38px);

    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -0.035em;
}


.project-contact-header h1 span {
    color: var(--green);
}


.project-contact-header p {
    max-width: 680px;

    margin: 22px auto 0;

    color: var(--text-light);

    font-size: 17px;

    line-height: 1.75;
}


.project-contact-header p strong {
    color: var(--text);
}


/* =========================================================
   CARD
   ========================================================= */

.project-contact-card {
    position: relative;

    padding: 48px;

    border: 1px solid rgba(0, 50, 0, 0.175);

    background: rgba(255, 255, 255, 0.96);


}


/* Ligne décorative */

.project-contact-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: 110px;
    height: 4px;

    transform: translateX(-50%);
    background: var(--green);
}


/* =========================================================
   INTRO FORM
   ========================================================= */

.form-intro {
    display: flex;

    align-items: center;

    gap: 17px;

    margin-bottom: 35px;

    padding-bottom: 30px;

    border-bottom: 1px solid #edf0f2;
}


.form-intro-icon {
    display: flex;

    flex-shrink: 0;

    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    border-radius: 14px;

    color: var(--green);

    background: var(--green-light);
}


.form-intro-icon svg {
    width: 25px;
    height: 25px;
}


.form-intro h2 {
    margin: 0 0 4px;

    color: var(--text);

    font-size: 20px;
    font-weight: 750;
}


.form-intro p {
    margin: 0;

    color: var(--text-light);

    font-size: 14px;

    line-height: 1.5;
}


/* =========================================================
   FORM GRID
   ========================================================= */

.project-form {
    display: flex;

    flex-direction: column;

    gap: 25px;
}


.form-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 20px;
}


.form-group {
    display: flex;

    flex-direction: column;

    gap: 9px;
}


.form-group label,
.section-label {
    color: #405065;

    font-size: 14px;

    font-weight: 650;
}


.form-group label span,
.section-label span {
    color: rgb(42, 42, 42);
}


.form-group label em {
    color: #9aa5b1;

    font-style: normal;

    font-weight: 400;
}


/* =========================================================
   INPUTS
   ========================================================= */

.input-wrapper,
.textarea-wrapper {
    position: relative;
}


.input-wrapper svg {
    position: absolute;

    top: 50%;
    left: 16px;

    width: 19px;
    height: 19px;

    transform: translateY(-50%);

    color: #93a0ad;

    pointer-events: none;

    transition: color 0.2s ease;
}


.input-wrapper input,
.textarea-wrapper textarea {
    width: 100%;

    box-sizing: border-box;

    border: 1px solid var(--border);

    border-radius: 10px;

    outline: none;

    background: #fff;

    color: var(--text);

    font-family: inherit;

    font-size: 15px;

}


.input-wrapper input {
    height: 52px;

    padding: 0 16px 0 48px;
}


.textarea-wrapper svg {
    position: absolute;

    top: 17px;
    left: 16px;

    width: 19px;
    height: 19px;

    color: #93a0ad;

    pointer-events: none;
}


.textarea-wrapper textarea {
    min-height: 145px;

    resize: vertical;

    padding: 16px 16px 16px 48px;

    line-height: 1.6;
}


.input-wrapper input::placeholder,
.textarea-wrapper textarea::placeholder {
    color: #a2aab3;
}


/* Focus */

.input-wrapper input:focus,
.textarea-wrapper textarea:focus {
    border-color: var(--green);

    background: #fff;
}


.input-wrapper:focus-within svg,
.textarea-wrapper:focus-within svg {
    color: var(--green);
}


/* =========================================================
   NEEDS / CHECKBOX
   ========================================================= */

.needs-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 4px;
}


.need-option,
.consent-option {
    position: relative;

    display: flex;

    align-items: flex-start;

    gap: 11px;

    color: #526276;

    font-size: 14px;

    line-height: 1.5;

    cursor: pointer;
}


.need-option input,
.consent-option input {
    position: absolute;

    width: 1px;
    height: 1px;

    opacity: 0;
}


.custom-check {
    position: relative;

    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin-top: 1px;

    border: 1.5px solid #b9c3cc;

    border-radius: 5px;

    background: #fff;

}


.need-option input:checked + .custom-check,
.consent-option input:checked + .custom-check {
    border-color: var(--green);

    background: var(--green);

}


.need-option input:checked + .custom-check::after,
.consent-option input:checked + .custom-check::after {
    content: "";

    position: absolute;

    top: 3px;
    left: 6px;

    width: 4px;
    height: 8px;

    border: solid #fff;

    border-width: 0 2px 2px 0;

    transform: rotate(45deg);
}


.need-option:hover .custom-check,
.consent-option:hover .custom-check {
    border-color: var(--green);
}


.need-option small {
    color: #8a96a3;
}


/* =========================================================
   CONSENT
   ========================================================= */

.consent-option {
    padding-top: 3px;

    color: #68778a;

    font-size: 13px;
}


.consent-error {
    margin-top: -18px;
}


/* =========================================================
   BUTTON
   ========================================================= */

.contact-submit {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 13px;

    width: 100%;

    min-height: 58px;

    margin-top: 3px;

    border: 0;

    background:
        linear-gradient(
            135deg,
            #31a963 0%,
            #279656 100%
        );

    color: #fff;

    font-family: inherit;

    font-size: 16px;

    font-weight: 750;

    cursor: pointer;

}


.contact-submit svg {
    width: 20px;
    height: 20px;

    transition: transform 0.2s ease;
}


.contact-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
}


.contact-submit:hover svg {
    transform: translateX(4px);
}


.contact-submit:active {
    transform: translateY(0);
}


/* =========================================================
   SECURITY
   ========================================================= */

.form-security {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    margin: -7px 0 0;

    color: #98a3af;

    font-size: 12px;

    text-align: center;
}


.form-security svg {
    width: 15px;
    height: 15px;
}


/* =========================================================
   SUCCESS / ERRORS
   ========================================================= */

.form-success,
.form-errors {
    display: flex;

    gap: 10px;

    padding: 14px 16px;

    margin-bottom: 25px;

    border-radius: 9px;

    font-size: 14px;
}


.form-success {
    align-items: center;

    border: 1px solid #bce5cb;

    background: #effaf3;

    color: #237846;
}


.form-success svg {
    width: 20px;
    height: 20px;

    flex-shrink: 0;
}


.form-errors {
    flex-direction: column;

    border: 1px solid #f1c5c5;

    background: #fff5f5;

    color: #a33a3a;
}


.form-errors ul {
    margin: 0;

    padding-left: 18px;
}


.field-error {
    color: #d54848;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   RESPONSIVE TABLET
   ========================================================= */

@media (max-width: 768px) {

    .project-contact-section {
        padding: 70px 16px;
    }

    .project-contact-header {
        margin-bottom: 32px;
    }

    .project-contact-header p {
        font-size: 15px;
    }

    .project-contact-card {
        padding: 32px 25px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .needs-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   RESPONSIVE MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .project-contact-section {
        padding: 55px 12px;
    }

    .project-contact-header h1 {
        font-size: 36px;

        letter-spacing: -0.025em;
    }

    .project-contact-header p {
        margin-top: 17px;

        font-size: 14px;

        line-height: 1.65;
    }

    .project-contact-badge {
        font-size: 11px;

        padding: 7px 12px;
    }

    .project-contact-card {
        padding: 27px 18px;
    }

    .form-intro {
        align-items: flex-start;

        gap: 12px;

        margin-bottom: 28px;

        padding-bottom: 23px;
    }

    .form-intro-icon {
        width: 44px;
        height: 44px;
    }

    .form-intro-icon svg {
        width: 21px;
        height: 21px;
    }

    .form-intro h2 {
        font-size: 18px;
    }

    .form-intro p {
        font-size: 12px;
    }

    .project-form {
        gap: 21px;
    }

    .input-wrapper input {
        height: 50px;
    }

    .textarea-wrapper textarea {
        min-height: 130px;
    }

    .contact-submit {
        min-height: 55px;

        font-size: 14px;
    }

    .form-security {
        font-size: 11px;
    }
}
