:root {
    color-scheme: light;
    font-family: "Trebuchet MS", Arial, sans-serif;
    color: #38252f;
    background: #88b7d4;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% 20%, rgba(255, 246, 219, 0.6), transparent 55%),
        #88b7d4;
}

.page {
    width: min(100% - 32px, 980px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 28px 0 20px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.brand img {
    display: block;
    width: min(250px, 52vw);
    height: auto;
}

.contact-panel {
    position: relative;
    margin: auto 0;
}

.contact-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: clamp(28px, 6vw, 72px);
    align-items: start;
    margin: 0;
    padding: clamp(28px, 6vw, 64px);
    border: 1px solid rgba(75, 43, 61, 0.16);
    border-radius: 24px;
    background: rgba(255, 248, 229, 0.91);
    box-shadow: 0 18px 55px rgba(41, 58, 71, 0.18);
}

.page-tabs {
    position: absolute;
    top: -44px;
    right: 20px;
    display: flex;
    align-items: flex-end;
}

.page-tab {
    display: inline-flex;
    min-width: 108px;
    height: 41px;
    align-items: center;
    justify-content: center;
    padding: 22px 38px;
    border: 1px solid rgba(75, 43, 61, 0.2);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: rgb(229 184 207);
    color: #542f43;
    font-weight: 700;
    text-decoration: none;
}

.page-tab + .page-tab {
    margin-left: -1px;
}

.page-tab:hover:not(.is-active) {
    background: rgb(243 168 206)
}

.page-tab:focus-visible {
    position: relative;
    z-index: 1;
    outline: 3px solid #815061;
    outline-offset: 2px;
}

.page-tab.is-active {
    position: relative;
    z-index: 1;
    background: rgba(255, 248, 229, 0.91);
}

.intro {
    padding-top: 8px;
}

.eyebrow {
    margin: 0 0 14px;
    color: #815061;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0 0 20px;
    color: #542f43;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.intro > p:last-child {
    max-width: 32ch;
    margin: 0;
    color: #574854;
    font-size: 1.05rem;
    line-height: 1.75;
}

.contact-form {
    display: grid;
    gap: 18px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.form-group label {
    color: #542f43;
    font-size: 0.92rem;
    font-weight: 700;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d5c5b7;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.76);
    color: #38252f;
    font: inherit;
    line-height: 1.5;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-group textarea {
    min-height: 140px;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #815061;
    box-shadow: 0 0 0 3px rgba(129, 80, 97, 0.17);
}

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

.btn-submit {
    justify-self: start;
    min-height: 48px;
    padding: 12px 24px;
    border: 0;
    border-radius: 999px;
    background: #6d3e56;
    color: #fff8e5;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 160ms ease, transform 160ms ease;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    background: #542f43;
}

.btn-submit:disabled {
    cursor: wait;
    opacity: 0.7;
}

.form-message {
    display: none;
    margin: 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.form-message.success,
.form-message.error {
    display: block;
}

.form-message.success {
    border: 1px solid #4d8259;
    background: #eaf5e9;
    color: #315d3b;
}

.form-message.error {
    border: 1px solid #a34a4a;
    background: #fff0ed;
    color: #7d3030;
}

.footer {
    padding: 22px 0 4px;
    color: #38252f;
    font-size: 0.82rem;
    text-align: center;
}

@media (max-width: 700px) {
    .page {
        padding-top: 16px;
    }

    .brand {
        margin-bottom: 60px;
    }

    .brand img {
        width: min(185px, 45vw);
    }

    .contact-card {
        grid-template-columns: 1fr;
        gap: 28px;
        margin: 0;
        padding: clamp(24px, 7vw, 40px);
    }

    .intro {
        padding-top: 0;
    }
}

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
