/* Contact-specific styles (moved from styles.css)
   This file contains only rules prefixed with `contact-` and related
   small helpers used exclusively by the contact page.
*/

.contact-intro {
    /* background: #f8f9fa; */
    color: #071133;
}

/* Make the copy column sticky on larger screens so it stays visible while the form scrolls.
   Sticky is disabled on small screens where layout stacks. */
@media (min-width: 1101px) {
    .contact-services__copy {
        position: sticky;
        top: 80px;
        align-self: start;
        z-index: 80;
        /* ensure it sits above other content in the section */
    }
}

@media (max-width: 980px) {
    .contact-services__copy {
        position: static;
        top: auto;
    }
}

.contact-intro__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0px 0px 2rem 0px;
    display: flex;
    gap: 48px;
    align-items: center;
}

.hero.contact {
    height: 56vh;
}

.showcase.contactform {
    background-image: url(../img/contact_bg.jpg);
    background-position: center bottom;
}

.btn-rposition {
    margin-bottom: unset !important;
    display: flex;
    justify-content: right;
    margin-top: 32px;
}

/* Match nav-container horizontal padding on narrower viewports without changing vertical spacing */
@media (max-width: 1400px) {
    .contact-intro__container {
        padding-left: var(--gutter);
        padding-right: var(--gutter);
    }
}

@media (max-width: 1240px) {
    .contact-intro__cards {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 28px;
    }

}

@media (max-width: 768px) {
    .contact-intro__container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

.contact-intro__left {
    flex: 0 0 32%;
}

.contact-intro__eyebrow {
    color: rgb(61 88 160);
    font-size: 16px;
    margin-bottom: 14px;
    text-transform: none;
    padding: 0.75rem 1.5rem;
    background: rgb(57 98 167 / 10%);
    width: fit-content;
    border-radius: 100px;
    font-weight: 500;
}

.contact-intro__big {
    margin: 0;
    font-size: 48px;
    line-height: 56px;
    font-weight: 700;
    color: #1a1a1a;
    word-break: break-word;
}

.contact-intro__right {
    flex: 1 1 58%;
    /* margin-top: -330px; */
}

.contact-intro__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.contact-card {
    background: linear-gradient(133deg, rgb(26 43 89) 0%, rgb(21 42 106) 100%);
    padding: 24px 30px;
    border-radius: 12px;
    min-width: 220px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.contact-card__icon {
    font-size: 30px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
}

.contact-card__title {
    margin: 0 0 0px 0;
    font-size: 20px;
    color: #ffffff;
    font-weight: 500;
}

.contact-card__desc {
    margin: 0 0 14px 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.94rem;
    line-height: 1.45;
    word-wrap: break-word;
}

.contact-card__link {
    color: #32c87f;
    text-decoration: none;
    font-weight: 500;
}

.contact-card__arrow {
    margin-left: 8px;
    color: #32c87f;
}

.contact-section__part {
    box-shadow: 0px -1px 8px rgb(108 143 179 / 17%);
    background: linear-gradient(328deg, rgb(39 54 97) 0%, rgb(44 66 121) 100%);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.contact-services__form {
    width: 94%;
}

.contact-cons_txt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 300;
    align-items: baseline;
}

.info-summary {
    grid-template-columns: 120px 1fr !important;
    gap: 12px !important;
}

.label-req {
    color: #FF0909;
}

.fa-ico {
    color: #ffffff !important;
}

@media (max-width: 980px) {
    .contact-intro__container {
        gap: 28px;
    }


    .contact-intro__left {
        flex: 0 0 36%;
    }

    .contact-intro__cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-services__form {
        width: 100%;
        min-width: 300px;
    }

    .contact-intro__left {
        flex: 0 0 26%;
    }

    .contact-panel {
        max-width: max-content !important;
    }


    .contact-btn__row {
        width: 100%;
        padding: 1%;
    }
}

@media (max-width: 680px) {
    .contact-intro__container {
        display: block;
        padding: 36px var(--gutter);
    }

    .contact-intro__left {
        margin-bottom: 20px;
    }

    .contact-intro__big {
        text-align: left;
        font-size: 34px;
    }

    .contact-card {
        padding: 20px;
        min-height: 180px;
    }

    .info-summary {
        grid-template-columns: 1fr !important;
        gap: 0px !important;
    }
}

@media (max-width: 520px) {
    .contact-intro__cards {
        grid-template-columns: 1fr !important;
    }
}

/* Contact Services (form + copy) */
.contact-services {
    background: transparent;
    color: inherit;
}

.contact-services__container {
    width: 100%;
    padding: 24px 0;
    display: grid;
    grid-template-columns: 64% 36%;
    gap: 12px;
    align-items: start;
}

.contact-title {
    color: rgb(29, 53, 77);
    font-size: 32px;
    margin-bottom: 0px;
    font-weight: 700;
    border-radius: 6px;
    padding: 6px 0px 12px 0px;
    letter-spacing: -1px;
}

.contact-panel {
    background: linear-gradient(133deg, rgb(25 42 88) 0%, rgb(21 36 76) 100%);
    padding: 24px;
    border-radius: 12px;
    width: 100%;
    max-width: 640px;
    margin: 0;
    backdrop-filter: blur(8px) saturate(1.5);
    -webkit-backdrop-filter: blur(8px) saturate(1.5);
}

.contact-form__row {
    margin-bottom: 16px;
}

.contact-cons__row {
    margin-bottom: 8px;
}

.sum-card {
    margin-top: 16px;
    border: 1px dashed rgb(221 221 221);
}

.sum-notice {
    margin-top: 16px;
    color: #666666;
    font-size: 15px;
}

.txt_underline {
    text-decoration: underline;
}

/* Floating label field wrapper */
.f-field {
    position: relative;
}

.f-field .contact-form__input,
.f-field select.contact-form__input {
    padding-top: 32px;
}

.f-field .f-label {
    position: absolute;
    left: 16px;
    top: 22px;
    font-size: 14px;
    font-weight: 600;
    color: rgba(3, 9, 30, 0.8);
    pointer-events: none;
    transition: transform 0.18s ease, color 0.18s ease, font-size 0.18s ease;
}

.f-field.filled .f-label,
.f-field.focus .f-label {
    transform: translateY(-12px);
    font-size: 12px;
    font-weight: 400;
    color: rgba(7, 17, 51, 0.8);
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    background: rgb(248 249 250);
    border: 1px solid rgba(7, 17, 51, 0.08);
    color: #071133;
    padding: 12px 16px 4px 16px;
    border-radius: 6px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    max-height: 64px;
    min-height: 64px;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: rgba(7, 17, 51, 0.45);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 160px;
    border-top: 32px solid #f8f9fa;
}

/* ===== Validation (red border + highlight) ===== */
.contact-form__input.is-invalid {
  border-color: rgba(220, 53, 69, 0.9) !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14);
}
.contact-form__textarea.is-invalid {
  border-color: rgba(220, 53, 69, 0.9) !important;
  border-top-color: #f8f9fa !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.14);
}
#contact-issue-container.is-invalid {
  outline: 3px solid rgba(220, 53, 69, 0.22);
  outline-offset: 6px;
  border-radius: 10px;
}



#contact-issue-container.is-invalid {
  outline: 3px solid rgba(220, 53, 69, 0.22);
  outline-offset: 6px;
  border-radius: 10px;
}

.contact-cons_txt.is-invalid {
  outline: 3px solid rgba(220, 53, 69, 0.22);
  outline-offset: 6px;
  border-radius: 10px;
  padding: 6px 8px;
}


/* Select wrapper to replace native arrow with Font Awesome icon */
.select-wrap {
    position: relative;
}

.select-wrap select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 44px;
}

.select-wrap::after {
    content: "\f078";
    /* chevron-down */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #071133;
    pointer-events: none;
    font-size: 0.9rem;
}

/* Visible label for Issue and color adjustments for non-field text */
.contact-form__issue {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 14px 0px 14px 4px;
}

.contact-form__label {
    color: #fff;
    font-weight: 600;
    margin-right: 8px;
    min-width: 56px;
}

.contact-form__choices label,
.contact-form__prefs label,
.contact-form__consent label,
.contact-form__anonymous label {
    color: #fff;
}

.contact-cons_txt {
  color: #ffffff;
}

.contact-cons_txt span {
  color: #ffffff;
}

.contact-cons_txt a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-cons_txt a:hover,
.contact-cons_txt a:focus {
  color: rgb(50 200 127);
}

.contact-form__note {
    color: #ffffffba;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 300;
    letter-spacing: 0.2px;
}

/* New rules can be added below this line */

/* Radio / Checkbox accent color and focus styles (contact page only) */
.contact-panel input[type="radio"],
.contact-panel input[type="checkbox"] {
    accent-color: rgb(50 200 127);
    margin: -3px 0px 0px 8px;
}

/* Provide a visible focus ring for keyboard users */
.contact-panel input[type="radio"]:focus-visible,
.contact-panel input[type="checkbox"]:focus-visible {
    outline: 3px solid rgba(43, 182, 115, 0.18);
    outline-offset: 2px;
}

/* Modal styles (contact page) */
.contact-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.6s ease, visibility 0.9s ease;
}

.contact-modal.is-open {
    visibility: visible;
    opacity: 1;
}

.contact-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
}

.contact-modal__panel {
    position: relative;
    background: #fff;
    color: #071133;
    padding: 28px;
    border-radius: 10px;
    max-width: 560px;
    width: calc(100% - 48px);
    box-shadow: 0 20px 40px rgba(11, 16, 28, 0.24);
    /* start high above and invisible */
    transform: translateY(-30vh);
    opacity: 0;
    transition: transform 1s cubic-bezier(.2, .8, .2, 1), opacity 0.5s ease;
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
}

.contact-modal__body {
    overflow-y: auto;
    padding-right: 6px;
}

.grecaptcha-badge {
    visibility: hidden;
}


.contact-modal.is-open .contact-modal__panel {
    transform: translateY(0);
    opacity: 1;
}

.contact-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    color: rgb(36, 42, 57);
}

.contact-modal__close i {
    font-size: 24px;
    transform: rotate(0deg);
    transition: 0.4s ease-in-out;
}

.contact-modal__close i:hover {
    color: rgb(82, 114, 202);
    transform: rotate(90deg);
    transition: 0.3s ease-in;
}

.contact-modal__close:focus-visible {
    outline: 3px solid rgba(43, 182, 115, 0.18);
    outline-offset: 2px;
}

.contact-modal__actions {
    margin-top: 18px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.contact-modal__cl {
    background: rgb(61 88 160);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    letter-spacing: 0.2px;
    transition: transform 0.3s ease, background 0.3s ease;
    transform: translateY(0);
}

.contact-modal__cl:hover {
    background: rgb(82, 114, 202);
    transform: translateY(-2px);
}

/* For browsers that don't support accent-color, tint the label text when checked/focused via adjacent selector where possible */
.contact-form__choices label input:checked,
.contact-form__choices label input:focus {
    filter: none;
}

.contact-btn {
    background: rgb(61 88 160);
    color: #ffffff;
    border: none;
    padding: 12px 26px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.45;
}

/* (No hover opacity rule — underline handles hover effect) */

/* Add an underline hover effect that matches the index "view-more" link */
.contact-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.contact-btn {
    /* match .lets-talk: subtle lift and background change on hover */
    transition: transform 0.3s ease, background 0.3s ease;
}

.contact-btn:hover,
.contact-btn:focus {
    background: rgb(82, 114, 202);
    /* darker green on hover (same as other CTAs) */
    transform: translateY(-2px);
}

.contact-btn:active {
    transform: translateY(0);
}

.contact-services__copy {
    padding-top: 8px;
    width: 100%;
}


.contact-copy__title {
    margin: 0 0 18px 0;
    font-size: 48px;
    color: rgb(0 0 0);
    font-weight: 700;
    line-height: 56px;
}

.contact-copy__desc {
    color: rgb(0 0 0);
    max-width: 520px;
}

.contact-services__container {
    align-items: start;
}

@media (max-width: 980px) {
    .contact-services__container {
        grid-template-columns: 1fr;
        padding: 52px var(--gutter);
    }

    .contact-services__copy {
        order: -1;
        margin-bottom: 20px;
    }

    .contact-copy__title {
        font-size: 48px;
    }
}

@media (max-width: 680px) {
    .contact-services__container {
        padding: 36px 18px;
    }

    .contact-copy__title {
        font-size: 34px;
    }

    .contact-panel {
        padding: 22px;
    }
}

@media (max-width: 1400px) {
    .contact-services__container {
        padding: 84px var(--gutter);
    }
}

/* Make contact-services overlap hero and appear on top layer, centered */
.contact-services {
    position: relative;
    z-index: 60;
    width: min(100%, var(--container-max));
    margin: 0 auto;
    padding: 0;
}

.contact-section {
    padding: 80px 0PX;
    background: linear-gradient(133deg, rgb(255 255 255) 0%, rgb(248 249 250) 100%);
}

/* Background image (faint, grayscale) for contact-section.contactform */
.contact-section.contactform {
    position: relative;
    overflow: visible;
    /* allow sticky children to work */
}

.contact-section.contactform::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('../img/contact_bg.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    opacity: 0.25;
    /* 10% visibility */
    z-index: 0;
    pointer-events: none;
}

.contact-form__error{
  display:none;
  margin-top:12px;
  padding:12px 14px;
  border-radius:12px;
  border:1px solid rgba(220, 53, 69, .35);
  background: rgba(220, 53, 69, .08);
  color:#b02a37;
  font-size:14px;
  line-height:1.4;
}

.contact-form__error.is-show{
  display:block;
}


@media (max-width: 1400px) {
    .contact-services__container {
        padding: 72px var(--gutter);
    }
}

@media (max-width: 1100px) {
    .contact-services {
        margin-top: -80px;
    }

    .contact-section {
        padding-top: 96px;
    }
}

@media (max-width: 680px) {
    .contact-services {
        margin-top: 0;
    }

    .contact-section {
        padding-top: 36px;
    }

    .contact-services__container {
        padding: 36px 18px;
    }
}

/* Responsive small-screen helpers copied from styles.css */
@media (max-width: 768px) {
    .contact-section {
        padding: 2rem 0 2.5rem;
        position: relative;
        color: inherit;
    }

    /* dark overlay for small screens (moved to ::after so the background image can use ::before) */
    .contact-section::after {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
    }

    .contact-section .contact-services {
        position: relative;
        z-index: 2;
        margin-top: -120px;
    }

    @media (max-width: 1100px) {
        .contact-section .contact-services {
            margin-top: -80px;
        }
    }

    @media (max-width: 680px) {
        .contact-section .contact-services {
            margin-top: 0;
        }
    }
}