/* ==========================================================================
   Contact page
   ========================================================================== */

.contact__wrapper {
    margin-top: 95px;
    padding-top: 40px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* --- Header --- */
.contact__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    margin-bottom: 48px;
    max-width: 600px;
}

.contact__diamond {
    width: 52px;
    height: 52px;
    display: inline-flex;
}

.contact__diamond svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact__title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: var(--weight-bold);
    color: var(--color-shades-primary);
    margin: 0;
    line-height: 1.3;
}

.contact__subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: var(--weight-regular);
    color: var(--color-shades-secondary);
    line-height: 1.8;
    margin: 0;
}

/* --- Form --- */
.contact__form {
    width: 100%;
    max-width: 560px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: right;
}

.form-label {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: var(--weight-semibold);
    color: var(--color-shades-primary);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: var(--weight-regular);
    color: var(--color-shades-primary);
    background-color: var(--color-white);
    border: 1px solid var(--color-shades-quad);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input::placeholder {
    color: var(--color-shades-tertiary);
}

.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-variant);
}

.form-textarea {
    resize: vertical;
    min-height: 140px;
    line-height: 1.7;
}

/* --- Submit --- */
.contact__submit {
    align-self: flex-start;
    padding: 14px 40px;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: var(--weight-bold);
    color: var(--color-on-primary);
    background-color: var(--color-primary);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.contact__submit:hover {
    opacity: 0.92;
    transform: translateY(-2px);
}

.contact__submit:active {
    transform: translateY(0);
}


/* Hide honeypot field from humans (bots read the DOM and fill it anyway) */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}


/* Field error message */
.field-error {
    display: block;
    color: var(--color-error);
    font-size: 12px;
    min-height: 16px;
    margin-top: 4px;
}

.form-input.has-error {
    border-color: var(--color-error);
}


/* Character count */
.char-count {
    float: left;
    font-size: 11px;
    color: var(--color-shades-tertiary);
    font-weight: var(--weight-regular);
}


/* Form status message */
.form-status {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.5;
    display: none;
}

.form-status--success {
    display: block;
    background-color: rgba(46, 160, 67, 0.1);
    color: var(--color-success);
    border: 1px solid rgba(46, 160, 67, 0.2);
}

.form-status--error {
    display: block;
    background-color: rgba(220, 53, 69, 0.1);
    color: var(--color-error);
    border: 1px solid rgba(220, 53, 69, 0.2);
}


/* Disabled submit button state */
.contact__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 600px) {
    .contact__title {
        font-size: 26px;
    }

    .contact__diamond {
        width: 44px;
        height: 44px;
    }

    .contact__submit {
        align-self: stretch;
        text-align: center;
    }
}