/* ===================== */
/* Contact Page Styling */
/* ===================== */

/* Contact Form Container */
#contact {
    min-height: 100vh;
}

#contact-form {
    position: relative;
    max-width: 900px;
    margin: 90px 20px 20px;
    padding: 2rem 1.25rem;
    border: 1px solid var(--sub-color);
    background: #fff;
    opacity: 0.85;
    z-index: 2;
}

/* Form Rows */
.form-row {
    display: block;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-color);
}

/* Required Badge */
.required {
    background-color: var(--main-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 1px;
    margin-left: 6px;
    display: inline-block;
}

/* Input and Textarea */
.form-row input,
.form-row textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sub-color);
    border-radius: 6px;
    background-color: var(--bg-light);
    font-size: var(--p);
    box-sizing: border-box;
}

.form-row textarea {
    min-height: 120px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-color);
    font-style: italic;
    opacity: 0.8;
}

#char-count {
    color: var(--text-color);
}

/* Privacy policy check box */
.checkbox-row {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 4px;
}

.checkbox-label a {
    color: var(--main-color);
    text-decoration: underline;
}


/* Submit Button */
.form-actions {
    text-align: center;
    margin-top: 32px;
}

button[type="submit"] {
    background-color: var(--sub-color);
    color: white;
    padding: 12px 32px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background: var(--gradient-bg);
}

/* ===================== */
/* Responsive (Tablet and Up) */
/* ===================== */
@media (min-width: 768px) {
    #contact-form {
        margin: 120px auto;
        padding: 2.5rem clamp(24px, 4vw, 56px);
    }

    .form-row {
        display: flex;
        align-items: flex-start;
    }

    .form-row label {
        width: 160px;
        margin-top: 12px;
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .form-row input,
    .form-row textarea {
        flex: 1;
        margin: 10px;
    }


    #char-count {
        margin-left: 170px;
    }

}