/**
 * CONTACT.CSS - Specific styles for contact.html
 * Contains contact form, office info, and contact page specific components
 */

/*
================================================================================
|                    CONTACT.HTML PAGE SPECIFIC STYLES                       |
================================================================================
*/

/* ========================================
   CONTACT HERO SECTION
   ======================================== */
.contact-hero-section {
    background: linear-gradient(135deg, #f8fafc, #fff5f0);
    padding: 40px 0 30px 0;
    text-align: center;
    margin-top: 0;
}

.contact-hero-section h1 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: 'Roboto Slab', serif;
    color: #ff6600;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-hero-section p {
    font-size: 1.3rem;
    color: #4f555a;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ========================================
   CONTACT PAGE SECTION
   ======================================== */
.contact-page-section {
    padding: 60px 0;
}

/* ========================================
   OFFICE INFORMATION
   ======================================== */
.contact-office-info {
    margin-bottom: 60px;
}

.contact-office-info-item {
    background-color: var(--light-bg, #f8fafc);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.contact-office-info-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #008080, #225c55);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.contact-office-info-item:hover::before {
    transform: scaleX(1);
}

.contact-office-info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.contact-office-info-icon {
    margin-bottom: 20px;
}

.contact-office-info-icon .icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #008080, #225c55);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.contact-office-info-item:hover .contact-office-info-icon .icon {
    transform: scale(1.1);
}

.contact-office-info-icon .icon i {
    font-size: 1.8rem;
    color: #ffffff;
}

.contact-office-info-text h2 {
    color: #225c55;
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-family: "Roboto Slab", serif;
    font-weight: 600;
}

.contact-office-info-text p {
    color: #4f555a;
    margin: 0;
    font-size: 1rem;
    line-height: 1.6;
}

/* ========================================
   CONTACT TITLE SECTION
   ======================================== */
.contact-title {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.contact-title h2 {
    color: #225c55;
    font-size: 3rem;
    margin-bottom: 20px;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-title p {
    color: #4f555a;
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ========================================
   CONTACT FORM AREA
   ======================================== */
.contact-form-area {
    background: #ffffff;
    padding: 50px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.contact-form-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #008080, #225c55);
    border-radius: 15px 15px 0 0;
}

.contact-form-area .form-group {
    margin-bottom: 25px;
}

.contact-form-area label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #225c55;
    font-size: 0.95rem;
}

.contact-form-area .required::after {
    content: ' *';
    color: #dc3545;
}

.contact-form-area .form-control {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px 20px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
    background-color: #fafafa;
}

.contact-form-area .form-control:focus {
    border-color: #008080;
    box-shadow: 0 0 0 0.2rem rgba(0, 128, 128, 0.25);
    background-color: #ffffff;
    outline: none;
}

.contact-form-area textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.contact-form-area .theme-btn {
    background: linear-gradient(135deg, #008080, #225c55);
    border: none;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.contact-form-area .theme-btn:hover {
    background: linear-gradient(135deg, #225c55, #008080);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 128, 128, 0.3);
}

.contact-form-area .theme-btn:active {
    transform: translateY(0);
}

/* ========================================
   FORM VALIDATION STYLES
   ======================================== */
.contact-form-area .form-control.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.contact-form-area .form-control.success {
  /*  border-color: #28a745; */
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.error-handling-messages {
    margin-top: 20px;
    text-align: center;
    padding: 15px;
    border-radius: 8px;
}

.error-handling-messages #success {
    
    font-weight: 600;
    display: none;
    background-color: #d4edda;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #c3e6cb;
}

.error-handling-messages #error {
    color: #dc3545;
    font-weight: 600;
    display: none;
    background-color: #f8d7da;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5c6cb;
}

/* ========================================
   LOADING STATE
   ======================================== */
#loader {
    display: none;
    margin-left: 10px;
}

#loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-form-area .theme-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.contact-form-area .theme-btn:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ========================================
   ENHANCED MOBILE RESPONSIVENESS
   ======================================== */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .contact-hero-section h1 {
        font-size: 3rem;
    }
    
    .contact-title h2 {
        font-size: 3.5rem;
    }
}

/* Medium devices (tablets, 768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    .contact-page-section {
        padding: 60px 0;
    }
    
    .contact-hero-section h1 {
        font-size: 3.2rem;
    }
    
    .contact-title h2 {
        font-size: 2.8rem;
    }
    
    .contact-office-info {
        margin-bottom: 50px;
    }
    
    .contact-office-info-item {
        padding: 35px 25px;
        margin-bottom: 25px;
    }
    
    .contact-form-area {
        padding: 40px 30px;
    }
}

/* Small devices (landscape phones, 576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    .contact-page-section {
        padding: 50px 0;
    }
    
    .contact-hero-section {
        padding: 35px 0 25px 0;
    }
    
    .contact-hero-section h1 {
        font-size: 2.8rem;
        margin-bottom: 15px;
    }
    
    .contact-hero-section p {
        font-size: 1.2rem;
    }
    
    .contact-title {
        margin-bottom: 40px;
    }
    
    .contact-title h2 {
        font-size: 2.5rem;
        margin-bottom: 15px;
    }
    
    .contact-title p {
        font-size: 1.1rem;
    }
    
    .contact-office-info {
        margin-bottom: 40px;
    }
    
    .contact-office-info-item {
        padding: 30px 20px;
        margin-bottom: 20px;
    }
    
    .contact-office-info-icon .icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-office-info-icon .icon i {
        font-size: 1.5rem;
    }
    
    .contact-office-info-text h2 {
        font-size: 1.2rem;
    }
    
    .contact-office-info-text p {
        font-size: 0.95rem;
    }
    
    .contact-form-area {
        padding: 30px 20px;
        border-radius: 12px;
    }
    
    .contact-form-area .form-control {
        padding: 14px 18px;
        font-size: 16px;
        margin-bottom: 18px;
        min-height: 48px;
    }
    
    .contact-form-area textarea.form-control {
        min-height: 100px;
    }
    
    .contact-form-area .theme-btn {
        width: 100%;
        padding: 16px 30px;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {
    .contact-page-section {
        padding: 40px 0;
    }
    
    .contact-hero-section {
        padding: 30px 0 20px 0;
    }
    
    .contact-hero-section h1 {
        font-size: 2.2rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .contact-hero-section p {
        font-size: 1.1rem;
        line-height: 1.6;
    }
    
    .contact-title {
        margin-bottom: 30px;
        padding: 0 15px;
    }
    
    .contact-title h2 {
        font-size: 2rem;
        margin-bottom: 12px;
        line-height: 1.2;
    }
    
    .contact-title p {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .contact-office-info {
        margin-bottom: 35px;
    }
    
    .contact-office-info-item {
        padding: 25px 15px;
        margin-bottom: 15px;
        border-radius: 8px;
    }
    
    .contact-office-info-icon {
        margin-bottom: 15px;
    }
    
    .contact-office-info-icon .icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-office-info-icon .icon i {
        font-size: 1.3rem;
    }
    
    .contact-office-info-text h2 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .contact-office-info-text p {
        font-size: 0.9rem;
    }
    
    .contact-form-area {
        padding: 25px 15px;
        border-radius: 10px;
    }
    
    .contact-form-area .form-control {
        padding: 12px 16px;
        font-size: 16px;
        margin-bottom: 16px;
        border-radius: 6px;
    }
    
    .contact-form-area textarea.form-control {
        min-height: 90px;
    }
    
    .contact-form-area .theme-btn {
        padding: 14px 25px;
        font-size: 0.95rem;
        border-radius: 6px;
    }
}

/* Very small devices (less than 400px) */
@media (max-width: 400px) {
    .contact-hero-section h1 {
        font-size: 1.9rem;
    }
    
    .contact-title h2 {
        font-size: 1.8rem;
    }
    
    .contact-form-area {
        padding: 20px 12px;
    }
    
    .contact-form-area .form-control {
        padding: 10px 14px;
        margin-bottom: 14px;
    }
    
    .contact-form-area .theme-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

/* ========================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================== */

/* Focus styles for better accessibility */
.contact-form-area .form-control:focus,
.contact-form-area .theme-btn:focus {
    outline: 2px solid #008080;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-office-info-item {
        border: 2px solid #000;
    }
    
    .contact-form-area .form-control {
        border: 2px solid #000;
    }
    
    .contact-form-area .form-control:focus {
        border-color: #000;
        box-shadow: 0 0 0 3px #000;
    }
    
    .contact-office-info-item::before {
        background: #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .contact-office-info-item,
    .contact-office-info-icon .icon,
    .contact-form-area .form-control,
    .contact-form-area .theme-btn {
        transition: none;
    }
    
    .contact-office-info-item:hover {
        transform: none;
    }
    
    #loader i {
        animation: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */
@media print {
    .contact-hero-section {
        background: white !important;
        color: black !important;
    }
    
    .contact-form-area {
        box-shadow: none !important;
        border: 1px solid #000 !important;
    }
    
    .theme-btn {
        display: none !important;
    }
}