/* Contact page */
.contact-page #contact-page {
    overflow: visible;
    background: #fff;
}

.contact-section-1 {
    padding-bottom: 130px;
    background: #fff;
}

.contact-hero {
    height: 650px;
    color: #fff;
    background-color: #07506a;
    background-image: url("https://atomtechservices.com.au/wp/wp-content/uploads/2026/11/Section-scaled.webp");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.contact-hero-inner {
    position: relative;
    height: 100%;
    max-width: 1700px;
    padding-top: 42px;
    box-sizing: border-box;
}

.contact-eyebrow {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #ffff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
}

.contact-eyebrow span {
    width: 5px;
    height: 5px;
    flex: 0 0 5px;
    border-radius: 50%;
    background: #c45c32;
}

.contact-hero-heading {
    position: absolute;
    top: 50%;
    right: 20px;
    left: 20px;
    text-align: center;
    transform: translateY(-50%);
}

.contact-hero-heading h1 {
    margin: 0 0 6px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 70px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 70px;
}

.contact-hero-heading p {
    margin: 0 auto;
    color: #EEDEDE;
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 32px;
}

.contact-form-card {
    position: relative;
    z-index: 2;
    max-width: 980px;
    width: 100%;
    height: auto;
    min-height: 890px;
    margin: -226px auto 0;
    padding: 48px 50px 38px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(15, 38, 45, 0.12);
    box-sizing: border-box;
}

.contact-form-card>h2 {
    margin: 0 0 4px;
    color: #161A1D;
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 44px;
    text-align: center;
}

.contact-form-intro {
    margin: 0 0 28px;
    color: #3A4A46;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 28px;
    text-align: center;
}

.contact-form-intro span,
.contact-field b {
    color: #024BF0;
    font-weight: 700;
}

.contact-form-notice {
    margin: 0 0 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.45;
}

.contact-form-notice--success {
    background: #eaf5ef;
    color: #145b38;
}

.contact-form-notice--error {
    background: #fff0ed;
    color: #8d2b1a;
}

.contact-form-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
}

.contact-enquiry-form {
    margin-top: 80px;
}

.contact-field {
    display: flex;
    min-width: 0;
    flex-direction: column;
    margin-bottom: 20px;
    color: #161A1D;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    line-height: 26px;
}

.contact-field>span {
    display: block;
    margin-bottom: 6px;
}

.contact-field small {
    color: #697673;
    font-size: inherit;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid #d5d9d8;
    border-radius: 0;
    outline: none;
    background: transparent;
    color: #69736F;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.45;
    box-shadow: none;
    box-sizing: border-box;
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-bottom-color: #0d6875;
    box-shadow: 0 1px 0 #0d6875;
}

.contact-field select:invalid,
.contact-field textarea::placeholder {
    color: #89928f;
}

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

.contact-field--full select {
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%233a4a46' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
    background-size: 16px;
}

.contact-field--message {
    margin-bottom: 22px;
}

.contact-field textarea {
    min-height: 78px;
    max-height: 280px;
    overflow-y: hidden;
    resize: none;
}



.contact-form-submit button {
    display: inline-flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 999px;
    background: #b4552f;
    color: #fff;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 500;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.contact-form-submit button:hover {
    transform: translateY(-1px);
    background: #c45c32;
}

.contact-form-submit button span {
    font-size: 14px;
}

.contact-form-submit>p {
    margin: 14px 0 0;
    text-align: center;
    color: #3A4A46;
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 28px;
}

.contact-form-honeypot {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

.contact-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
    max-width: 1400px;
    margin: 100px auto 0;
    padding-bottom: 12px;
}

.contact-detail h3 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 12px;
    color: #000;
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-detail h3 span {
    display: inline-flex;
    flex: 0 0 16px;
    align-items: center;
    justify-content: center;
    color: #0b1719;
}

.contact-detail h3 span svg {
    display: block;
    width: 16px;
    height: 16px;
}

.contact-detail p {
    margin: 0 0 0 20px;
    color: #69736F;
    font-family: var(--font-body);
    font-size: 20px;
    line-height: 26px;
}

.contact-detail a {
    color: inherit;
    text-decoration: none;
}

.contact-detail a:hover {
    color: #b4552f;
}

@media (max-width: 900px) {
    .contact-form-card {
        width: min(760px, calc(100% - 48px));
        padding: 40px;
    }

    .contact-details {
        width: calc(100% - 48px);
        gap: 24px;
    }
}

@media (max-width: 640px) {
    .contact-section-1 {
        padding-bottom: 48px;
    }

    .contact-hero {
        height: 420px;
        background-position: 58% center;
    }

    .contact-hero-inner {
        padding-top: 28px;
    }

    .contact-hero-heading {
        top: 25%;
        right: 18px;
        left: 18px;
    }

    .contact-hero-heading h1 {
        font-size: clamp(34px, 9vw, 44px);
    }

    .contact-hero-heading p {
        max-width: 440px;
        font-size: 14px;
    }

    .contact-desktop-break {
        display: none;
    }

    .contact-form-card {
        width: calc(100% - 32px);
        margin-top: -236px;
        padding: 30px 22px 26px;
        border-radius: 20px;
    }

    .contact-form-card>h2 {
        font-size: clamp(22px, 6vw, 28px);
    }

    .contact-form-intro {
        margin-bottom: 22px;
    }

    .contact-form-fields {
        grid-template-columns: minmax(0, 1fr);
    }

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

    .contact-field {
        margin-bottom: 16px;
    }

    .contact-field textarea {
        min-height: 90px;
        max-height: 220px;
    }

    .contact-form-submit button {
        min-height: 48px;
    }

    .contact-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
        width: calc(100% - 48px);
        margin-top: 36px;
    }
}

@media (max-width: 380px) {
    .contact-form-card {
        padding-right: 18px;
        padding-left: 18px;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .contact-hero-heading {
        top: 27%;
    }
}

/* Tablet layout */
@media (max-width: 1024px) {
    .contact-hero {
        height: clamp(500px, 62vw, 620px);
    }

    .contact-hero-heading {
        top: 50%;
    }

    .contact-hero-heading h1 {
        font-size: clamp(46px, 6.5vw, 64px);
        line-height: 1.08;
    }

    .contact-hero-heading p {
        max-width: 680px;
        font-size: clamp(16px, 2vw, 19px);
        line-height: 1.55;
    }

    .contact-form-card {
        width: min(820px, calc(100% - 48px));
        height: auto;
        min-height: 0;
        padding: clamp(32px, 5vw, 48px);
    }

    .contact-enquiry-form {
        margin-top: clamp(24px, 4vw, 48px);
    }

    .contact-field {
        font-size: 16px;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        font-size: 16px;
    }

    .contact-details {
        margin-top: 64px;
    }

    .contact-detail h3 {
        font-size: 21px;
    }

    .contact-detail p {
        font-size: 17px;
        overflow-wrap: anywhere;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .contact-form-card {
        margin-top: -150px;
    }
}

/* Mobile layout */
@media (max-width: 640px) {
    .contact-hero {
        height: 420px;
    }

    .contact-hero-heading {
        top: 25%;
    }

    .contact-hero-heading h1 {
        font-size: clamp(34px, 9vw, 46px);
        line-height: 1.12;
    }

    .contact-hero-heading p {
        font-size: 14px;
        line-height: 1.5;
    }

    .contact-form-card {
        width: calc(100% - 32px);
        height: auto;
        margin-top: -236px;
        padding: 30px 22px 26px;
    }

    .contact-form-card>h2 {
        font-size: clamp(22px, 6vw, 28px);
        line-height: 1.2;
    }

    .contact-form-intro {
        margin-bottom: 18px;
        font-size: 14px;
        line-height: 1.45;
    }

    .contact-enquiry-form {
        margin-top: 24px;
    }

    .contact-form-fields {
        row-gap: 0;
    }

    .contact-field {
        margin-bottom: 14px;
        font-size: 14px;
        line-height: 1.4;
    }

    .contact-field input,
    .contact-field select,
    .contact-field textarea {
        padding: 9px 0;
        font-size: 15px;
    }

    .contact-field--message {
        margin-bottom: 18px;
    }

    .contact-field textarea {
        min-height: 90px;
    }

    .contact-form-submit {
        padding-top: 16px;
    }

    .contact-form-submit button {
        min-height: 48px;
        font-size: 16px;
    }

    .contact-form-submit>p {
        font-size: 13px;
        line-height: 1.45;
    }

    .contact-details {
        width: calc(100% - 40px);
        margin-top: 36px;
        gap: 22px;
    }

    .contact-detail h3 {
        margin-bottom: 7px;
        font-size: 19px;
    }

    .contact-detail p {
        margin-left: 25px;
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (max-width: 380px) {
    .contact-form-card {
        width: calc(100% - 24px);
        margin-top: -226px;
        padding: 26px 18px 24px;
    }

    .contact-hero-heading {
        right: 14px;
        left: 14px;
    }

    .contact-form-fields {
        column-gap: 0;
    }
}
