/* =========================================================
   CONTACT FORM MODAL
   ========================================================= */

.contact-form-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    visibility: hidden;
    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


/* =========================================================
   OPEN
   ========================================================= */

.contact-form-modal.is-open {
    visibility: visible;
    opacity: 1;

    pointer-events: auto;
}


/* =========================================================
   OVERLAY
   ========================================================= */

.contact-form-modal__overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.65);

    backdrop-filter: blur(6px);
}


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

.contact-form-modal__container {
    position: relative;

    z-index: 1;

    width: 100%;
    max-width: 520px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    background: var(--color-white);

    border-radius: var(--radius-large);

    box-shadow:
        0 25px 80px rgba(0, 0, 0, 0.25);

    transform: translateY(30px) scale(0.97);

    transition: transform 0.3s ease;
}

.contact-form-modal.is-open
.contact-form-modal__container {
    transform: translateY(0) scale(1);
}


/* =========================================================
   CONTENT
   ========================================================= */

.contact-form-modal__content {
    padding: 42px;
}


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

.contact-form-modal__header {
    margin-bottom: 30px;
}

.contact-form-modal__eyebrow {
    display: block;

    margin-bottom: 8px;

    color: var(--color-primary);

    font-size: 13px;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-form-modal__header h2 {
    margin-bottom: 12px;

    font-size: clamp(28px, 5vw, 38px);

    letter-spacing: -0.03em;
}

.contact-form-modal__header p {
    margin: 0;

    color: var(--color-text-light);

    font-size: 15px;
}


/* =========================================================
   CLOSE
   ========================================================= */

.contact-form-modal__close {
    position: absolute;

    top: 18px;
    right: 18px;

    z-index: 2;

    width: 38px;
    height: 38px;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: var(--color-background);

    cursor: pointer;
}

.contact-form-modal__close span {
    position: absolute;

    left: 10px;

    width: 18px;
    height: 2px;

    background: var(--color-text);
}

.contact-form-modal__close span:first-child {
    transform: rotate(45deg);
}

.contact-form-modal__close span:last-child {
    transform: rotate(-45deg);
}


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

.contact-form {
    display: flex;
    flex-direction: column;

    gap: 18px;
}


/* =========================================================
   FIELD
   ========================================================= */

.contact-form__field {
    display: flex;
    flex-direction: column;

    gap: 7px;
}

.contact-form__field label {
    font-size: 14px;
    font-weight: 700;
}

.contact-form__field input {
    width: 100%;

    min-height: 48px;

    padding: 12px 14px;

    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);

    background: var(--color-white);

    color: var(--color-text);

    font-family: inherit;
    font-size: 15px;

    outline: none;

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

.contact-form__field input:focus {
    border-color: var(--color-primary);

    box-shadow:
        0 0 0 3px var(--color-primary-light);
}


/* =========================================================
   CONSENT
   ========================================================= */

.contact-form__consent label {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;
}

.contact-form__consent input {
    flex-shrink: 0;

    width: 18px;
    height: 18px;

    margin-top: 2px;

    accent-color: var(--color-primary);
}

.contact-form__consent span {
    color: var(--color-text-light);

    font-size: 12px;
    line-height: 1.5;
}


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

.contact-form__submit {
    width: 100%;

    justify-content: center;
}


/* =========================================================
   PRIVACY
   ========================================================= */

.contact-form__privacy {
    margin: 0;

    color: var(--color-text-light);

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   BODY LOCK
   ========================================================= */

body.contact-form-open {
    overflow: hidden;
}


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

@media (max-width: 600px) {

    .contact-form-modal {
        padding: 12px;
    }

    .contact-form-modal__container {
        max-height: calc(100vh - 24px);

        border-radius: 20px;
    }

    .contact-form-modal__content {
        padding: 32px 22px 24px;
    }

}

/* =========================================================
   CONTACT FORM - PAGE
   ========================================================= */

.contact-form-wrapper--page {
    display: block !important;

    position: relative !important;

    width: 100%;

    padding: 90px 24px;

    background: var(--color-background);

    opacity: 1 !important;
    visibility: visible !important;

    pointer-events: auto !important;

    transform: none !important;
}


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

.contact-form-page__container {
    width: 100%;
    max-width: 650px;

    margin: 0 auto;
}


/* =========================================================
   CONTENT
   ========================================================= */

.contact-form-page__content {
    width: 100%;

    padding: 45px;

    background: var(--color-white);

    border: 1px solid var(--color-border);

    border-radius: var(--radius-large);

    box-shadow: var(--shadow-medium);
}


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

.contact-form-wrapper--page
.contact-form-modal__header {
    margin-bottom: 35px;

    text-align: center;
}

.contact-form-wrapper--page
.contact-form-modal__header h1 {
    margin: 0 0 15px;

    font-size: clamp(32px, 5vw, 46px);

    line-height: 1.15;
}

.contact-form-wrapper--page
.contact-form-modal__header p {
    margin: 0;

    color: var(--color-text-light);

    line-height: 1.6;
}


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

@media (max-width: 600px) {

    .contact-form-wrapper--page {
        padding: 50px 16px !important;
    }

    .contact-form-page__content {
        padding: 30px 20px;
    }

}

/* =========================================================
   CONSENT - ROZWIJANA PEŁNA TREŚĆ
   ========================================================= */

.contact-form__consent {
    width: 100%;
}

.contact-form__consent .consent-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
}

.contact-form__consent .consent-wrapper > input[type="checkbox"] {
    flex: 0 0 auto;

    width: 18px;
    height: 18px;

    margin: 2px 0 0;

    accent-color: var(--color-primary);
}

.contact-form__consent .consent-content {
    flex: 1;
    min-width: 0;
}

.contact-form__consent .consent-label {
    display: block;

    margin: 0;

    cursor: pointer;

    line-height: 1.5;
}

.contact-form__consent .consent-short {
    display: inline;

    color: var(--color-text-light);

    font-size: 12px;
    line-height: 1.5;
}

.contact-form__consent .consent-full {
    display: none;

    color: var(--color-text-light);

    font-size: 12px;
    line-height: 1.5;
}

.contact-form__consent.is-expanded .consent-full {
    display: inline !important;
}

.contact-form__consent .consent-toggle {
    display: inline-block;

    padding: 0;
    margin: 4px 0 0;

    border: 0;

    background: transparent;

    color: var(--color-primary);

    font-family: inherit;
    font-size: 12px;
    line-height: 1.4;

    cursor: pointer;

    text-decoration: underline;
}

.contact-form__consent .consent-toggle:hover {
    text-decoration: none;
}

.contact-form__consent .consent-full a {
    color: var(--color-primary);

    text-decoration: underline;
}

.contact-form__consent .consent-full a:hover {
    text-decoration: none;
}

/* =========================================================
SELECT - RODZAJ UBEZPIECZENIA
========================================================= */

.contact-form__field select {
width: 100%;

min-height: 48px;

padding: 12px 42px 12px 14px;

border: 1px solid var(--color-border);
border-radius: var(--radius-small);

background-color: var(--color-white);
background-image: none;

color: var(--color-text);

font-family: inherit;
font-size: 15px;
line-height: 1.4;

cursor: pointer;

outline: none;

appearance: auto;

transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;

}

/* =========================================================
SELECT - FOCUS
========================================================= */

.contact-form__field select:focus {
border-color: var(--color-primary);

box-shadow:
    0 0 0 3px var(--color-primary-light);

outline: none;

}

/* =========================================================
SELECT - HOVER
========================================================= */

.contact-form__field select:hover {
border-color: var(--color-primary);
}

/* =========================================================
SELECT - PLACEHOLDER
========================================================= */

.contact-form__field select:invalid {
color: var(--color-text-light);
}

/* =========================================================
SELECT - OPCJE
========================================================= */

.contact-form__field select option {
color: var(--color-text);

background: var(--color-white);

}

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

@media (max-width: 600px) {

.contact-form__field select {
    min-height: 48px;

    font-size: 16px;
}


}
