/* ------------------------------------------------ */
/* CONTACT PAGE - GENERAL STYLING */
/* ------------------------------------------------ */

/* Override theme alignment for contact page */
.page-template-page-contact .entry-content,
.page-template-page-contact .page-content,
.page-template-page-contact .content-area,
.page-template-page-contact article,
.page-template-page-contact p,
.page-template-page-contact h1,
.page-template-page-contact h2,
.page-template-page-contact h3 {
    text-align: left !important;
}

/* Reduce top space caused by fixed header */
body.page-template-page-contact {
    padding-top: 40px !important; /* Adjust based on your fixed header height */
}

/* Remove extra theme container spacing */
.page-template-page-contact .container,
.page-template-page-contact .tutor-container,
.page-template-page-contact .tutor-course-single-content-wrapper {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* ------------------------------------------------ */
/* Reduce wrapper top margin */
.contact-page-wrapper {
    margin-top: 20px !important; /* less space above wrapper */
    padding-top: 30px !important; /* internal padding */
}

/* ------------------------------------------------ */
/* CONTACT TITLE */
/* ------------------------------------------------ */
.contact-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #111827;
    text-align: left !important;
}

/* ------------------------------------------------ */
/* INTRO TEXT */
/* ------------------------------------------------ */
.contact-intro {
    margin-bottom: 30px;
    text-align: left !important;
}

.contact-intro p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 14px;
    text-align: left !important;
}

/* ------------------------------------------------ */
/* FORM STYLING */
/* ------------------------------------------------ */
.contact-form {
    display: flex;
    flex-direction: column;
}

/* Row for side-by-side fields (Name + Email) */
.form-row {
    display: flex;
    gap: 20px;
}

/* Form group */
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 22px;
}

/* Labels */
.contact-form label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #1f2937;
}

.contact-form label span {
    color: #ef4444;
}

/* Inputs & Textarea */
.contact-form input,
.contact-form textarea {
    padding: 14px 15px;
    border-radius: 10px;
    border: 1px solid #dcdfe4;
    font-size: 15px;
    background: #fafafa;
    transition: all 0.25s ease;
}

/* Input focus */
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #6366f1;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
}

/* Textarea */
.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

/* File input */
input[type=file] {
    background: transparent;
    border: none;
    padding: 6px 0;
}

/* CAPTCHA */
.captcha-container input {
    max-width: 200px;
}

/* ------------------------------------------------ */
/* SUBMIT BUTTON */
/* ------------------------------------------------ */
#contactSubmit {
    margin-top: 15px;
    padding: 15px;
    border-radius: 10px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(135deg,#6366f1,#4f46e5);
    color: #ffffff;
    transition: all 0.25s ease;
}

#contactSubmit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(79,70,229,0.35);
}

/* ------------------------------------------------ */
/* SUCCESS MESSAGE */
/* ------------------------------------------------ */
.contact-success {
    margin-top: 20px;
    padding: 14px;
    background: #ecfdf5;
    border: 1px solid #10b981;
    border-radius: 8px;
    color: #047857;
    text-align: center;
    font-weight: 600;
}

/* ------------------------------------------------ */
/* ERROR MESSAGE */
/* ------------------------------------------------ */
.contact-error {
    margin-top: 20px;
    padding: 14px;
    background: #fef2f2;
    border: 1px solid #ef4444;
    border-radius: 8px;
    color: #b91c1c;
    text-align: center;
    font-weight: 600;
}

/* ------------------------------------------------ */
/* MOBILE OPTIMIZATION */
/* ------------------------------------------------ */
@media (max-width: 768px) {
    .contact-page-wrapper {
        padding: 30px 20px;
        margin: 20px 10px 40px;
    }

    .form-row {
        flex-direction: column;
    }
}