* {
    box-sizing: border-box;
}

html {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    margin: 0;
    min-height: 100vh;
    background: #f3f5f9;
    color: #172033;
}

button,
input,
textarea {
    font: inherit;
	background: #fff;
}

.contact-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.contact-card {
    width: 100%;
    max-width: 850px;
    background: #ffffff;
    border-radius: 20px;
    padding: 45px;
    box-shadow: 0 20px 60px rgba(24, 39, 75, 0.12);
}

.contact-header {
    margin-bottom: 32px;
}

.contact-label {
    display: inline-block;
    margin-bottom: 8px;
    color: #ff3600;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-header h1 {
    margin: 0 0 10px;
    font-size: clamp(30px, 5vw, 44px);
    line-height: 1.15;
}

.contact-header p {
    margin: 0;
    color: #667085;
    font-size: 16px;
    line-height: 1.6;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.form-group {
    min-width: 0;
}

.form-group > label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 650;
}

.form-group label span[aria-hidden="true"],
.checkbox-label strong {
    color: #d92d20;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #ffffff;
    color: #172033;
    padding: 13px 15px;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

textarea {
    display: block;
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

input::placeholder,
textarea::placeholder {
    color: #98a2b3;
}

input:focus,
textarea:focus {
    border-color: #ff3600;
    box-shadow: 0 0 0 4px rgba(50, 94, 230, 0.12);
}

input.is-invalid,
textarea.is-invalid {
    border-color: #d92d20;
    background: #fffafa;
}

input.is-invalid:focus,
textarea.is-invalid:focus {
    box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

input.is-valid,
textarea.is-valid {
    border-color: #12a150;
}

.field-error {
    min-height: 19px;
    margin-top: 6px;
    color: #d92d20;
    font-size: 13px;
    line-height: 1.4;
}

.textarea-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.character-count {
    margin-top: 6px;
    color: #667085;
    font-size: 13px;
    white-space: nowrap;
}

.checkbox-group {
    margin-top: -4px;
}

.checkbox-label {
    display: inline-flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    color: #475467;
    font-size: 14px;
    line-height: 1.5;
}

.checkbox-label input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1px solid #b8c0cc;
    border-radius: 5px;
    background: #ffffff;
    transition: 0.2s ease;
}

.checkbox-label input:focus + .custom-checkbox {
    border-color: #ff3600;
    box-shadow: 0 0 0 4px rgba(50, 94, 230, 0.12);
}

.checkbox-label input:checked + .custom-checkbox {
    border-color: #ff3600;
    background: #ff3600;
}

.checkbox-label input:checked + .custom-checkbox::after {
    content: "";
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input.is-invalid + .custom-checkbox {
    border-color: #d92d20;
}

#submitButton {
    position: relative;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 10px;
    background: #ff3600;
    color: #ffffff;
    padding: 14px 24px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#submitButton:hover {
    background: #244ed2;
    box-shadow: 0 10px 25px rgba(50, 94, 230, 0.25);
    transform: translateY(-1px);
}

#submitButton:active {
    transform: translateY(0);
}

#submitButton:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

.button-loader {
    display: none;
    width: 20px;
    height: 20px;
    margin: auto;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

#submitButton.is-loading .button-text {
    display: none;
}

#submitButton.is-loading .button-loader {
    display: block;
}

.form-response {
    display: none;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.5;
}

.form-response.success {
    display: block;
    border: 1px solid #abefc6;
    background: #ecfdf3;
    color: #067647;
}

.form-response.error {
    display: block;
    border: 1px solid #fecdca;
    background: #fef3f2;
    color: #b42318;
}

.website-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 680px) {
    .contact-page {
        padding: 20px 12px;
    }

    .contact-card {
        padding: 28px 20px;
        border-radius: 14px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}