input,
textarea,
select {
    font: inherit;
}

.page-hero {
    padding: 72px 0;
    background: var(--grey-100);
}

.contact-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 1.15fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: stretch;
}

.contact-form-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(420px, 1.9fr);
    gap: clamp(44px, 7vw, 96px);
    align-items: center;
}

.contact-hero__media {
    position: relative;
    align-self: center;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
    transform: none;
}

.contact-hero__media > img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.contact-hero__media:hover {
    transform: none;
}

.contact-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 720px;
}

.contact-hero__content > :last-child {
    margin-bottom: 0;
}

.page-hero h1 {
    color: var(--primary, var(--secondary));
    font-size: clamp(2.6rem, 6vw, 5rem);
}

.enquiry-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.enquiry-card {
    min-width: 0;
    border: 1px solid var(--grey-200);
    border-top: 4px solid var(--primary, var(--secondary));
    padding: 30px;
    border-radius: 1rem;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(18, 43, 45, .06);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.enquiry-card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 42px rgba(15, 94, 99, .13);
    transform: translateY(-7px);
}

.enquiry-card__number {
    display: block;
    margin-bottom: 1rem;
    color: var(--primary, var(--secondary));
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.enquiry-card__type {
    width: fit-content;
    margin-bottom: 12px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary, var(--primary)), var(--green-deep));
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.enquiry-card h3 {
    color: var(--primary, var(--secondary));
}

.enquiry-card > p:last-child {
    margin-bottom: 0;
    color: var(--grey-700);
}

.contact-form-layout {
    grid-template-columns: minmax(280px, .75fr) minmax(460px, 1.25fr);
    align-items: start;
}

.contact-form-intro {
    max-width: 580px;
}

.contact-detail-grid {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.contact-detail-card {
    min-width: 0;
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    border: 1px solid var(--grey-200);
    border-left: 4px solid var(--primary, var(--secondary));
    border-radius: 1rem;
    padding: 20px;
    background: var(--white);
    box-shadow: 0 10px 26px rgba(18, 43, 45, .055);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.contact-detail-card:hover {
    border-color: var(--primary);
    box-shadow: 0 16px 34px rgba(15, 94, 99, .12);
    transform: translateY(-4px);
}

.contact-detail-card__icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    color: var(--white);
    background: linear-gradient(135deg, var(--secondary, var(--primary)), var(--green-deep));
    font-size: 1.05rem;
}

.contact-detail-card__label {
    margin: 0 0 2px;
    color: var(--grey-700);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.contact-detail-card a {
    color: var(--primary, var(--secondary));
    font-weight: 600;
    overflow-wrap: anywhere;
    text-decoration: none;
}

.contact-detail-card a:hover {
    text-decoration: underline;
}

.form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 18px;
    border-radius: 1rem;
    border: 1px solid var(--grey-200);
    border-top: 4px solid var(--primary, var(--secondary));
    padding: clamp(26px, 4vw, 42px);
    background: var(--white);
    box-shadow: var(--shadow);
}

.field {
    display: flex;
    display: grid;
    gap: 7px;
}

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

.field label {
    color: var(--grey-900);
    font-size: .86rem;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    border: 1px solid var(--grey-300);
    border-radius: 5px;
    padding: 12px 14px;
    color: var(--grey-900);
    background: var(--white);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 94, 99, .12);
    outline: 0;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.form-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--grey-700);
    font-size: .78rem;
}

.field input.invalid,
.field select.invalid,
.field textarea.invalid {
    border-color: #d93025;
    background-color: #fff8f8;
}

.field-error {
    color: #d93025;
    font-size: 0.8rem;
    margin-top: 2px;
    font-weight: 500;
}

.required-star {
    color: #d93025;
}

.optional-tag {
    font-size: 0.8rem;
    color: var(--grey-700);
    font-weight: 400;
}

.form button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 6px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(18, 43, 45, .15);
    border: 1px solid var(--grey-200);
    border-left: 5px solid var(--primary, #005b82);
    animation: toastSlideIn 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.toast--success {
    border-left-color: #0d8a00;
}

.toast--error {
    border-left-color: #d93025;
}

.toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast--success .toast__icon {
    background: #e6f4ea;
    color: #0d8a00;
}

.toast--error .toast__icon {
    background: #fce8e6;
    color: #d93025;
}

.toast__content {
    flex: 1;
}

.toast__title {
    font-weight: 700;
    font-size: 0.92rem;
    margin: 0 0 2px 0;
    color: var(--grey-900);
}

.toast__message {
    font-size: 0.85rem;
    color: var(--grey-700);
    margin: 0;
    line-height: 1.45;
}

.toast__close {
    background: none;
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--grey-700);
    cursor: pointer;
    padding: 0 2px;
    margin-left: 4px;
    transition: color 0.2s ease;
}

.toast__close:hover {
    color: var(--grey-900);
}

.toast--hiding {
    animation: toastSlideOut 0.28s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

@media (max-width: 900px) {
    .contact-hero__grid,
    .contact-form-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .contact-hero__media {
        order: -1;
    }
}

@media (max-width: 780px) {
    .page-hero {
        padding: 54px 0 70px;
    }

    .enquiry-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .form {
        grid-template-columns: 1fr;
    }

    .field--full,
    .form-note {
        grid-column: 1;
    }
}

.page-hero .container {
    animation: hero-enter .75s cubic-bezier(.2, .8, .2, 1) both;
}
