/* ===== Contact Page Styles ===== */

.contact-container {
    display: flex;
    justify-content: center;
    padding: 6rem 2rem;
}

.contact-container .container {
    max-width: 820px;
    width: 100%;
}

.contact-container h1 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-container>.container>p {
    color: #444;
    margin-bottom: 2.4rem;
    line-height: 1.6;
}

/* Card-like form */
.contact-form {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 3rem;
}

/* Groups */
.form-group {
    margin-bottom: 2rem;
}

/* Labels */
.form-group label {
    display: inline-block;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--dark);
}

.req {
    color: var(--secondary-color);
    margin-left: 0.25rem;
}

/* Inputs */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="search"],
.contact-form input[type="password"],
.contact-form textarea {
    width: 100%;
    padding: 1.2rem 1.4rem;
    font-size: 1.6rem;
    border-radius: 10px;
    border: 1px solid var(--light-gray);
    background: #fff;
    background-color: #f9f9f9;
    outline: none;
    transition: all 0.15s ease;
}

.contact-form textarea {
    min-height: 160px;
    resize: vertical;
}

/* Focus + hover */
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary-color);
}

/* Hints & errors */
.hint {
    display: block;
    margin-top: 0.6rem;
    color: #6b7280;
    font-size: 1.3rem;
}

.error,
.input-error {
    display: block;
    margin-top: 0.6rem;
    color: var(--error-color);
    font-size: 1.4rem;
    font-weight: 600;
}

/* Counter below textarea */
.form-group p {
    margin-top: 0.6rem;
    font-size: 1.4rem;
    color: #6b7280;
}

#messageCounter {
    font-weight: 700;
    color: var(--text-color);
}

/* Button */
.btn-primary {
    display: inline-block;
    padding: 1.2rem 2.2rem;
    border: none;
    border-radius: 3rem;
    background: var(--secondary-color);
    color: #fff;
    font-weight: 600;
    font-size: 1.6rem;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: var(--secondary-color-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary:active {
    background-color: var(--secondary-color-darker);
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Inline states for invalid fields (JS-controlled classes optional) */
.form-group.invalid input,
.form-group.invalid textarea {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08);
}

/* Layout tweaks */
@media (max-width: 640px) {
    .contact-container {
        padding: 4rem 1.6rem;
    }

    .contact-form {
        padding: 2rem;
    }

    .contact-container h1 {
        font-size: 2.4rem;
    }
}

/* Optional: subtle divider between fields */
.contact-form .form-group+.form-group {
    padding-top: 0.2rem;
}