/* Contact page — based on pure-version/src/contact */

.contact-box {
    position: relative;
    margin-block: 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(243 244 246);
    background: rgb(255 255 255);
    padding: 1.25rem;
    box-shadow: rgb(0 0 0 / 0.13) 0 1px 3px;
}

.contact-box__title {
    font-weight: 600;
    color: rgb(15 23 42);
}

.contact-input {
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid rgb(209 213 219);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    color: rgb(30 41 59);
    outline: none;
    transition: border-color 0.15s ease;
}

.contact-input:focus {
    border-color: rgb(59 130 246);
}

.contact-input.contact-input--error {
    border-color: rgb(239 68 68) !important;
}

.contact-select {
    appearance: none;
    cursor: pointer;
    padding-block: 0.75rem;
}

.contact-select-arrow {
    pointer-events: none;
    position: absolute;
    top: 2.875rem;
    left: 0.625rem;
    width: 1rem;
    height: 1rem;
    color: rgb(107 114 128);
}

.contact-field-error {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: rgb(239 68 68);
}

.contact-form-banner {
    margin-bottom: 1rem;
    border-radius: 0.375rem;
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-form-banner--success {
    background: rgb(209 250 229);
    color: rgb(6 95 70);
}

.contact-form-banner--error {
    background: rgb(254 226 226);
    color: rgb(153 27 27);
}

.contact-attachment-wrap {
    border-radius: 0.375rem;
    border: 1px solid rgb(209 213 219);
    background: rgb(248 250 252 / 0.8);
    padding: 0.75rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-attachment-wrap:focus-within {
    border-color: rgb(59 130 246);
    box-shadow: 0 0 0 2px rgb(59 130 246 / 0.3);
}

.contact-attachment-wrap.contact-input--error {
    border-color: rgb(239 68 68) !important;
}

.contact-attachment-btn {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
    border-radius: 0.375rem;
    border: 1px solid rgb(59 130 246);
    background: rgb(59 130 246);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(255 255 255);
    transition: background 0.15s ease;
}

.contact-attachment-btn:hover {
    background: rgb(96 165 250);
}

.contact-attachment-clear {
    flex-shrink: 0;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(220 38 38);
    text-underline-offset: 2px;
}

.contact-attachment-clear:hover {
    text-decoration: underline;
}

.contact-submit {
    margin-top: 2.5rem;
    margin-inline-start: auto;
    display: flex;
    width: 100%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: none;
    border-radius: 0.375rem;
    background: rgb(59 130 246);
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(255 255 255);
    transition: background 0.15s ease, opacity 0.15s ease;
}

.contact-submit:hover:not(:disabled) {
    background: rgb(96 165 250);
}

.contact-submit:disabled {
    pointer-events: none;
    opacity: 0.5;
}

@media (min-width: 640px) {
    .contact-submit {
        width: fit-content;
    }
}

.contact-social-link {
    display: flex;
    height: 3rem;
    width: 3rem;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: rgb(229 231 235);
    color: rgb(107 114 128);
    transition: background 0.15s ease;
}

.contact-social-link:hover {
    background: rgb(209 213 219);
}
