.contact-form-component {
    width: 100%;
}


/*
|--------------------------------------------------------------------------
| Title
|--------------------------------------------------------------------------
*/

.contact-form-title {
    margin: 0;

    color: #2d2723;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(28px, 2.4vw, 38px);
    line-height: 1.15;
}


.contact-form-response-note {
    margin: 6px 0 20px;

    color: #81766e;

    font-size: 13px;
    line-height: 1.55;
}


/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.contact-form {
    width: 100%;
}


.contact-form-grid {
    display: grid;

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

    gap: 20px 26px;
}


.contact-form-field {
    display: grid;
    gap: 8px;

    min-width: 0;
}


.contact-form-field-full {
    grid-column: 1 / -1;
}


/*
|--------------------------------------------------------------------------
| Labels
|--------------------------------------------------------------------------
*/

.contact-form-field label {
    color: #403832;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}


.contact-form-field label span {
    color: #367BE6;
}


/*
|--------------------------------------------------------------------------
| Inputs
|--------------------------------------------------------------------------
*/

.contact-form-field input,
.contact-form-field select,
.contact-form-field textarea {
    width: 100%;

    border: 1px solid #dfd4cb;
    border-radius: 10px;

    color: #302923;
    background: #ffffff;

    font: inherit;
    font-size: 14px;

    outline: none;

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


.contact-form-field input,
.contact-form-field select {
    min-height: 48px;

    padding: 0 14px;
}


.contact-form-field textarea {
    min-height: 130px;

    padding: 14px;

    line-height: 1.6;

    resize: vertical;
}


.contact-form-field input::placeholder,
.contact-form-field textarea::placeholder {
    color: #aaa099;
}


.contact-form-field input:hover,
.contact-form-field select:hover,
.contact-form-field textarea:hover {
    border-color: #cfb9a8;
}


.contact-form-field input:focus,
.contact-form-field select:focus,
.contact-form-field textarea:focus {
    border-color: #367BE6;

    background: #fffdfb;

    box-shadow:
        0 0 0 3px
        rgba(54, 123, 230, 0.12);
}


.contact-form-field select {
    cursor: pointer;
}


/*
|--------------------------------------------------------------------------
| Invalid
|--------------------------------------------------------------------------
*/

.contact-form-field input:invalid:not(:placeholder-shown),
.contact-form-field textarea:invalid:not(:placeholder-shown) {
    border-color: #d8948c;
}


.contact-form-field input[aria-invalid="true"],
.contact-form-field select[aria-invalid="true"],
.contact-form-field textarea[aria-invalid="true"] {
    border-color: #c65f54;

    box-shadow:
        0 0 0 3px
        rgba(198, 95, 84, 0.1);
}


/*
|--------------------------------------------------------------------------
| Privacy
|--------------------------------------------------------------------------
*/

.contact-form-privacy {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    margin-top: 18px;

    color: #70665f;

    font-size: 12px;
    line-height: 1.55;

    cursor: pointer;
}


.contact-form-privacy input {
    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    margin-top: 2px;

    accent-color: #367BE6;
}


.contact-form-privacy a {
    color: #2D6ED1;

    font-weight: 800;

    text-decoration: underline;
    text-underline-offset: 2px;
}


.contact-form-privacy a:hover {
    color: #255FBF;
}


/*
|--------------------------------------------------------------------------
| Submit
|--------------------------------------------------------------------------
*/

.contact-form-actions {
    display: flex;
    align-items: center;

    margin-top: 20px;
}


.contact-form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 18px;

    min-height: 50px;

    padding: 0 24px;

    border: 1px solid #367BE6;
    border-radius: 9px;

    color: #ffffff;
    background: #367BE6;

    font: inherit;
    font-size: 14px;
    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 18px
        rgba(37, 95, 191, 0.14);

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


.contact-form-submit:hover {
    transform: translateY(-1px);

    border-color: #255FBF;

    background: #255FBF;

    box-shadow:
        0 10px 22px
        rgba(37, 95, 191, 0.18);
}


.contact-form-submit:focus-visible {
    outline:
        3px solid
        rgba(54, 123, 230, 0.24);

    outline-offset: 3px;
}


.contact-form-submit:disabled {
    cursor: wait;

    opacity: 0.7;

    transform: none;
}


.contact-form.is-submitting {
    opacity: 0.72;
}


/*
|--------------------------------------------------------------------------
| Response message
|--------------------------------------------------------------------------
*/

.contact-form-message {
    margin-top: 18px;

    padding: 14px 16px;

    border:
        1px solid
        transparent;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}


.contact-form-message[hidden] {
    display: none;
}


.contact-form-message.is-success {
    border-color: #b7d8bd;

    color: #236232;

    background: #edf8ef;
}


.contact-form-message.is-error {
    border-color: #e4b7b7;

    color: #8b2424;

    background: #fff0f0;
}

/*
|--------------------------------------------------------------------------
| Home contact section
|--------------------------------------------------------------------------
*/

.home-contact-section {
    position: relative;

    padding:
        82px
        24px
        92px;

    background: #f8f4ef;
}


/*
|--------------------------------------------------------------------------
| Divider between FAQ and contact form
|--------------------------------------------------------------------------
*/

.home-contact-section::before {
    content: "";

    position: absolute;

    top: 0;
    left: 50%;

    width: min(760px, calc(100% - 48px));
    height: 1px;

    transform: translateX(-50%);

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(54, 123, 230, 0.08) 12%,
            rgba(54, 123, 230, 0.28) 50%,
            rgba(54, 123, 230, 0.08) 88%,
            transparent 100%
        );
}


/*
 * Μικρή μπλε λεπτομέρεια
 * στο κέντρο του divider
 */

.home-contact-section::after {
    content: "";

    position: absolute;

    top: -3px;
    left: 50%;

    width: 54px;
    height: 7px;

    transform: translateX(-50%);

    border-radius: 999px;

    background: #367BE6;

    box-shadow:
        0 2px 8px
        rgba(54, 123, 230, 0.18);
}


/*
|--------------------------------------------------------------------------
| Main form card
|--------------------------------------------------------------------------
*/

.home-contact-inner {
    width: min(940px, 100%);

    margin: 0 auto;

    padding:
        42px
        40px;

    border:
        1px solid
        #eadfd6;

    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 18px 48px
        rgba(70, 48, 34, 0.07);
}

/*
|--------------------------------------------------------------------------
| Anti-spam honeypot
|--------------------------------------------------------------------------
*/

.contact-form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;

    width: 1px !important;
    height: 1px !important;

    overflow: hidden !important;
    opacity: 0 !important;

    pointer-events: none !important;
}

/*
|--------------------------------------------------------------------------
| Tablet
|--------------------------------------------------------------------------
*/

@media (max-width: 1000px) {

    .home-contact-section {
        padding:
            70px
            28px
            80px;
    }

    .home-contact-inner {
        padding:
            36px
            32px;
    }
}


/*
|--------------------------------------------------------------------------
| Mobile
|--------------------------------------------------------------------------
*/

@media (max-width: 700px) {

    .home-contact-section {
        padding:
            58px
            16px
            60px;
    }

    .home-contact-section::before {
        width:
            calc(100% - 32px);
    }

    .home-contact-section::after {
        width: 42px;
        height: 6px;
    }

    .home-contact-inner {
        padding:
            26px
            20px;

        border-radius: 18px;
    }

    .contact-form-title {
        margin-bottom: 20px;

        font-size: 28px;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;

        gap: 17px;
    }

    .contact-form-field-full {
        grid-column: auto;
    }

    .contact-form-field input,
    .contact-form-field select {
        min-height: 48px;
    }

    .contact-form-actions {
        display: grid;
    }

    .contact-form-submit {
        width: 100%;
    }
}