/* ===== CONTACT PAGE STYLES ===== */
/* Page Title/Hero Section */
.page-title.hero {
    text-align: center;
    background: gold !important;
    color: #2d3748;
    margin: 0 !important;
    padding: 0.5rem 2rem !important;
    width: 100%;
}

.page-title.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Contact Wrapper */
.contact-wrapper {
    padding: 2rem 0.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Subtitle Description */
.subtitle-description {
    text-align: center;
    font-size: 1.5rem;
    color: #4a5568;
    margin: 2px auto 1.5rem;
    line-height: 1.25;
    max-width: 800px;
}

/* Contact Content Layout - Equal Height Cards */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch; /* Equal height */
}

/* Card Base Styles */
.card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem; /* Consistent padding */
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 5px solid #e2e8f0;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%; /* Full grid height */
    /* REMOVED: margin-bottom: -28px - This was causing issues */
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* ===== CONTACT FORM STYLES ===== */
.contact-form h2 {
    color: #2d3748;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
}

/* FORCE FORM FIELD CENTERING */
.contact-form form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.form-group input,
.form-group textarea,
.contact-form button {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Input fields - perfectly centered */
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    resize: vertical;
    display: block;
    font-family: inherit;
    margin: 0 auto; /* Center the fields */
}

.form-group textarea {
    min-height: 120px;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* === FIX: Center the rectangular fields inside the contact card === */
.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;              /* Limit field width to 80% of card */
    max-width: 400px;        /* Prevent overly wide fields */
    margin: 0 auto;          /* Keep them centered */
    display: block;          /* Ensure proper centering */
}

/* Floating labels */
.form-group input:focus + label,
.form-group textarea:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    color: #667eea;
    font-weight: 600;
}

/* Submit button - centered */
.contact-form button {
    width: 100%;
    max-width: 400px;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
    margin: 0 auto;
}

.contact-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Success message - centered */
#form-success {
    text-align: center;
    padding: 1rem;
    background: #c6f6d5;
    color: #22543d;
    border-radius: 8px;
    margin-top: 1rem;
    border: 1px solid #9ae6b4;
    font-weight: 500;
    display: none;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* ===== CONTACT INFO STYLES ===== */
.contact-info.card {
    display: flex;
    flex-direction: column;
    height: 100%; /* Take full height */
}

.contact-info h2 {
    color: #2d3748;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    width: 100%;
}

.contact-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    flex-grow: 1; /* Take remaining space */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center vertically */
}

.contact-info li {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem; /* Reduced from 3.5rem for better spacing */
    padding: 1rem;
    border-radius: 8px;
    transition: background 0.3s ease;
    width: 100%;
    justify-content: center; /* Center horizontally */
    text-align: center;
}

.contact-info li:hover {
    background: #f7fafc;
}

/* Increase Contact Info Font Size */
.contact-info li {
    font-size: 1.5rem; /* Increase from default size */
}

.contact-info strong {
    font-size: 1.5rem; /* Make the labels (Email, Phone, Address) larger */
}

.contact-info a {
    font-size: 1.5rem; /* Make the actual contact info larger */
}

.contact-info .icon {
    font-size: 1.5rem;
    margin-right: 1rem;
    flex-shrink: 0;
}

.contact-info strong {
    color: #2d3748;
    display: block;
    margin-bottom: 0.25rem;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #5a67d8;
    text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .page-title.hero h1 {
        font-size: 2.5rem;
    }

    .contact-wrapper {
        padding: 2rem 1rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        align-items: stretch; /* Maintain equal height */
    }

    .card {
        padding: 2rem;
    }

    .subtitle-description {
        font-size: 1.1rem;
    }

    .contact-info ul {
        justify-content: flex-start; /* Reset vertical centering on mobile */
    }

    .contact-info li {
        flex-direction: column;
        text-align: center;
        margin-bottom: 1.5rem; /* Consistent spacing */
    }

    .contact-info .icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    /* Ensure centering works on mobile */
    .form-group {
        width: 100%;
        max-width: 100%;
    }

    .form-group input,
    .form-group textarea,
    .contact-form button,
    #form-success {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .page-title.hero h1 {
        font-size: 2rem;
    }

    .card {
        padding: 1.5rem;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.875rem;
    }

    .contact-form button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .contact-form h2,
    .contact-info h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
}

