.inquiry-modal {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(520px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    margin: 0;
    padding: 32px;
    border: 0;
    border-radius: 18px;
    color: #1d2b26;
    box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
    font-family: inherit;
}

.inquiry-success-modal {
    position: fixed;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(420px, calc(100vw - 32px));
    max-width: none;
    margin: 0;
    padding: 36px 32px 30px;
    border: 0;
    border-radius: 18px;
    color: #1d2b26;
    text-align: center;
    box-shadow: 0 24px 80px rgb(0 0 0 / 30%);
    font-family: inherit;
}

.inquiry-modal[open] {
    animation: inquiry-modal-enter 180ms ease-out;
}

.inquiry-success-modal[open] {
    animation: inquiry-modal-enter 180ms ease-out;
}

@keyframes inquiry-modal-enter {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 10px)) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.inquiry-modal::backdrop {
    background: rgb(10 24 34 / 68%);
    backdrop-filter: blur(4px);
}

.inquiry-success-modal::backdrop {
    background: rgb(10 24 34 / 68%);
    backdrop-filter: blur(4px);
}

.inquiry-modal-eyebrow,
.inquiry-modal h2,
.inquiry-modal > p {
    display: block;
}

.inquiry-modal h2 {
    margin: 8px 32px 8px 0;
    color: #123247;
    font-size: clamp(1.5rem, 5vw, 2rem);
    line-height: 1.2;
}

.inquiry-success-modal h2 {
    margin: 14px 0 10px;
    color: #123247;
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    line-height: 1.25;
}

.inquiry-success-modal p {
    margin: 0 0 24px;
    color: #5b6b75;
}

.inquiry-success-icon {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 50%;
    background: #e7f6ee;
    color: #21864a;
    font-size: 30px;
    font-weight: 700;
}

.inquiry-modal > p {
    margin: 0 0 20px;
    color: #5b6b75;
}

.inquiry-modal-eyebrow {
    color: #087f8c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.inquiry-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    border: 0;
    background: transparent;
    color: #52636d;
    cursor: pointer;
    font-size: 28px;
    line-height: 1;
}

.inquiry-modal form,
.inquiry-modal label {
    display: grid;
    gap: 8px;
}

.inquiry-modal form {
    gap: 14px;
}

.inquiry-modal label {
    color: #263d4c;
    font-size: 14px;
    font-weight: 600;
}

.inquiry-modal input,
.inquiry-modal textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #c7d3dc;
    border-radius: 9px;
    padding: 11px 12px;
    color: #1d2b26;
    font: inherit;
    font-weight: 400;
    background: #fbfdfe;
    transition:
        border-color 150ms ease,
        box-shadow 150ms ease;
}

.inquiry-modal input:focus,
.inquiry-modal textarea:focus {
    border-color: #087f8c;
    outline: 0;
    box-shadow: 0 0 0 3px rgb(8 127 140 / 16%);
}

.inquiry-modal textarea {
    resize: vertical;
}

.inquiry-modal-submit {
    border: 0;
    border-radius: 8px;
    padding: 13px 16px;
    background: #0a5264;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.inquiry-success-modal .inquiry-modal-submit {
    width: 100%;
}

.inquiry-modal-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.inquiry-modal-status {
    margin: 0;
    font-size: 14px;
}

.inquiry-modal-status.success {
    color: #176b38;
}

.inquiry-modal-status.error {
    color: #a12626;
}

@media (max-width: 520px) {
    .inquiry-modal {
        padding: 26px 20px 22px;
    }

    .inquiry-success-modal {
        padding: 30px 22px 24px;
    }
}

@media (max-height: 620px) {
    .inquiry-modal {
        max-height: calc(100vh - 20px);
        padding-block: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .inquiry-modal[open],
    .inquiry-success-modal[open] {
        animation: none;
    }
}
