/* ==========================================================================
   Contact Page Styles
   ========================================================================== */

.sk-contact {
    padding: 80px 0 40px 0;
    width: 100%;
}

.sk-contact__layout {
    display: flex;
    justify-content: space-between;
    gap: 50px;
    align-items: start;
    width: 100%;
}

.sk-contact__info {
    flex: 0 0 calc(50% - 25px);
    max-width: 490px;
    width: 100%;
}

.sk-contact__title {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 58px;
    font-weight: 500;
    line-height: 1.1;
    color: #163C75;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

/* WYSIWYG Content Area */
.sk-contact__desc {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: #000000;
}

.sk-contact__desc p {
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Headings styled like "SK-Telemed GmbH" in Figma */
.sk-contact__desc h1,
.sk-contact__desc h2,
.sk-contact__desc h3,
.sk-contact__desc h4,
.sk-contact__desc h5,
.sk-contact__desc h6 {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.1;
    color: #000000;
    margin-top: 30px;
    margin-bottom: 15px;
}

.sk-contact__desc h1:first-child,
.sk-contact__desc h2:first-child,
.sk-contact__desc h3:first-child {
    margin-top: 0;
}

/* Email link styles */
.sk-contact__desc a {
    color: #000000;
    text-decoration: underline;
    text-underline-position: from-font;
    text-decoration-skip-ink: none;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.sk-contact__desc a:hover {
    opacity: 0.8;
}

/* Contact Form column */
.sk-contact__form {
    flex: 0 0 calc(50% - 25px);
    max-width: 491px;
    width: 100%;
}

/* CF7 Field structure */
.sk-cf7-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
    width: 100%;
}

.sk-cf7-label {
    font-family: 'Nunito Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    color: #163C75;
}

.sk-contact__form input[type="text"],
.sk-contact__form input[type="email"],
.sk-contact__form input[type="tel"],
.sk-contact__form select,
.sk-contact__form textarea,
.sk-cf7-input,
.sk-cf7-textarea {
    width: 100% !important;
    border: 1px solid #282828 !important;
    border-radius: 30px !important;
    padding: 0 25px !important;
    box-sizing: border-box !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 18px !important;
    color: #000000 !important;
    outline: none !important;
    background-color: #FFFFFF !important;
    transition: border-color 0.3s ease !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

.sk-contact__form input[type="text"],
.sk-contact__form input[type="email"],
.sk-contact__form input[type="tel"],
.sk-cf7-input {
    height: 50px !important;
}

.sk-contact__form textarea,
.sk-cf7-textarea {
    height: 140px !important;
    padding: 15px 25px !important;
    resize: none !important;
}

.sk-contact__form input[type="text"]:focus,
.sk-contact__form input[type="email"]:focus,
.sk-contact__form input[type="tel"]:focus,
.sk-contact__form textarea:focus,
.sk-cf7-input:focus,
.sk-cf7-textarea:focus {
    border-color: #163C75 !important;
}

/* CF7 Submit styles wrapper */
.sk-cf7-submit-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    background-color: #163C75;
    padding: 18px 30px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    color: #FFFFFF;
    transition: all 0.3s ease;
    width: auto;
    max-width: 220px;
}

.wpcf7-spinner {
    display: none !important;
}

/* Custom Loader Overlay during CF7 Submit */
.sk-contact__form form {
    position: relative;
}

.sk-contact__form form::before {
    content: "";
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sk-contact__form form::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin-top: -22px;
    margin-left: -22px;
    border: 4px solid rgba(22, 60, 117, 0.1);
    border-top: 4px solid #163C75;
    border-radius: 50%;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    animation: sk-form-spin 0.8s linear infinite;
    transition: all 0.3s ease;
}

.sk-contact__form form.submitting::before {
    opacity: 1;
    visibility: visible;
}

.sk-contact__form form.submitting::after {
    opacity: 1;
    visibility: visible;
}

@keyframes sk-form-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.sk-cf7-submit-wrapper:hover {
    background-color: #0f2c56;
}

.sk-cf7-submit-wrapper input.wpcf7-submit {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #FFFFFF !important;
    font-family: 'Nunito Sans', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    cursor: pointer;
    line-height: normal;
    width: auto !important;
    height: auto !important;
    border-radius: 0 !important;
}

.sk-cf7-submit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 12px;
    pointer-events: none;
    transition: transform 0.3s ease;
}

.sk-cf7-submit-wrapper:hover .sk-cf7-submit-icon {
    transform: translateX(5px);
}

/* ==========================================================================
   Google Map Section
   ========================================================================== */

.sk-contact-map {
    padding-bottom: 80px;
    width: 100%;
}

.sk-contact-map__wrapper {
    position: relative;
    width: 100%;
    height: 500px;
    border: 1px solid #282828;
    border-radius: 20px;
    overflow: hidden;
}

.sk-contact-map__wrapper iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* ==========================================================================
   Responsive Overrides
   ========================================================================== */

@media (max-width: 991px) {
    .sk-contact {
        padding: 40px 0 20px 0;
    }

    .sk-contact__layout {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .sk-contact__info {
        max-width: 100%;
        text-align: center;
    }

    .sk-contact__title {
        font-size: 36px;
        text-align: center;
    }

    .sk-contact__desc {
        font-size: 18px;
    }

    .sk-contact__desc h1,
    .sk-contact__desc h2,
    .sk-contact__desc h3,
    .sk-contact__desc h4,
    .sk-contact__desc h5,
    .sk-contact__desc h6 {
        font-size: 24px;
        text-align: center;
    }

    .sk-contact__desc a {
        text-align: center;
    }

    .sk-contact__form {
        max-width: 100%;
    }

    .sk-cf7-label {
        font-size: 18px;
    }

    .sk-contact__form input[type="text"],
    .sk-contact__form input[type="email"],
    .sk-contact__form input[type="tel"],
    .sk-cf7-input {
        height: 40px !important;
    }

    .sk-contact__form textarea,
    .sk-cf7-textarea {
        height: 100px !important;
    }

    .sk-cf7-submit-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 12px 30px;
        border-radius: 6px;
        box-sizing: border-box;
    }

    .sk-contact-map {
        padding-bottom: 40px;
    }

    .sk-contact-map__wrapper {
        height: 300px;
    }
}