﻿/* Contact Merged Layout Styles - Improved Version */
.contact-container {
    max-width: 1400px;
    margin: 20px auto;
    padding: 0 20px;
}

.contact-content {
    display: flex;
    gap: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    overflow: hidden;
    min-height: 700px;
}

/* Left Section: Contact Information */
.contact-info-section {
    flex: 1;
    padding: 50px 40px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.contact-info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.contact-info-content h3 {
    color: #1e429a;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
/*    display: flex;*/
    align-items: center;
}

.contact-info-content h3 i {
    color: #1e429a;
    font-size: 1.4rem;
    margin-right: 12px;
}

.contact-info-content h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1e429a, #0d6efd);
    border-radius: 2px;
}

.contact-details, .hotline-details {
    margin-bottom: 20px;
    display: table;
    width: 100%;
    border-spacing: 0 1em;
/*    border-collapse: collapse;*/
}

.contact-info-content p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: #495057;
    font-size: 1.05rem;
    display: table-row;
}

.contact-info-content p i {
    color: #1e429a;
    width: 20px;
    margin-right: 8px;
    text-align: center;
    display: table-cell;
    vertical-align: top;
    padding-top: 2px;
}

.contact-info-content strong {
    color: #212529;
    font-weight: 600;
    min-width: 140px;
    display: table-cell;
    vertical-align: top;
    padding-right: 15px;
    padding-bottom: 8px;
}

.contact-info-content .link-highlight {
    color: #1e429a;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
/*    padding: 4px 8px;*/
    border-radius: 4px;
    display: table-cell;
    vertical-align: top;
}

.contact-info-content .link-highlight:hover {
    color: #0d6efd;
    background: rgba(30, 66, 154, 0.1);
    text-decoration: none;
}

.contact-info-content h3.mt-4 {
    margin-top: 30px;
    margin-bottom: 20px;
}

.contact-image {
    margin-top: 40px;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.contact-image img {
    max-width: 180px;
    height: auto;
    border-radius: 8px;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

/* Middle Divider */
.contact-divider {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
    min-width: 100px;
    background: #fff;
    position: relative;
}

.contact-divider::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, #1e429a, transparent);
    transform: translateX(-50%);
}

.divider-text {
    color: #1e429a;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transform: rotate(180deg);
    padding: 20px 0;
    background: #fff;
    position: relative;
    z-index: 1;
}

/* Right Section: Feedback Form */
.feedback-section {
    flex: 1.2;
    padding: 50px 40px;
    padding-left: 0px;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.feedback-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.feedback-content h3 {
    color: #1e429a;
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    display: flex;
    align-items: center;
}

.feedback-content h3 i {
    color: #1e429a;
    font-size: 1.4rem;
    margin-right: 12px;
}

.feedback-content h3:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #1e429a, #0d6efd);
    border-radius: 2px;
}

.feedback-description {
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1.05rem;
    line-height: 1.6;
    font-style: italic;
    display: flex;
    align-items: flex-start;
}

.feedback-description i {
    color: #1e429a;
    margin-right: 8px;
    margin-top: 2px;
}

/* Form Styling */
.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-label i {
    color: #1e429a;
    margin-right: 6px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.form-control:focus {
    outline: none;
    border-color: #1e429a;
    box-shadow: 0 0 0 4px rgba(30, 66, 154, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #adb5bd;
    font-style: italic;
}

textarea.form-control {
    min-height: 140px;
    resize: vertical;
    font-family: inherit;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    /* Optional styling, uncomment if desired */
    /* background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%); */
    /* border-radius: 12px; */
    /* border: 1px solid #dee2e6; */
    /* box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); */
}

.g-recaptcha {
    display: inline-block;
    margin: 0 auto;
}

/* Responsive adjustments for mobile */
@media only screen and (max-width: 400px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
        max-width: 100%;
    }

        .g-recaptcha iframe {
            max-width: 100% !important;
        }
}

/* Specific fix for screens 430px and below */
@media only screen and (max-width: 375px) {
    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .recaptcha-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 25px;
        margin-bottom: 25px;
        margin-right: 50px;
    }
}
@media only screen and (max-width: 345px) {
    .g-recaptcha {
        transform: scale(0.8);
        transform-origin: center;
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .recaptcha-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-top: 25px;
        margin-bottom: 25px;
        margin-right: 150px;
    }
}
.recaptcha-container .invalid-feedback {
    margin-top: 10px;
    color: #dc3545;
    font-size: 0.9rem;
}

    .recaptcha-container .invalid-feedback i {
        margin-right: 4px;
    }

/* Submit Button */
.submit-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
/*    border-top: 1px solid #e9ecef;*/
}

.submit-btn {
    background: linear-gradient(135deg, #1e429a 0%, #0d6efd 100%);
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    transition: all 0.3s ease;
    min-width: 220px;
    color: white;
    box-shadow: 0 4px 12px rgba(30, 66, 154, 0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.submit-btn i {
    margin-right: 8px;
}

.submit-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d6efd 0%, #1e429a 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(30, 66, 154, 0.4);
}

.submit-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Alert Styling */
.alert {
    border-radius: 12px;
    border: none;
    margin-bottom: 25px;
    padding: 16px 20px;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
}

.alert i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.alert-success {
    background: linear-gradient(135deg, #d1e7dd 0%, #c3e6cb 100%);
    color: #0f5132;
    border-left: 4px solid #28a745;
}

.alert-success i {
    color: #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-danger i {
    color: #dc3545;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-content {
        gap: 0;
    }
    
    .contact-info-section,
    .feedback-section {
        padding: 40px 30px;
    }
    
    .contact-info-content h3,
    .feedback-content h3 {
        font-size: 1.4rem;
    }
}

@media (max-width: 992px) {
    .contact-content {
        flex-direction: column;
        min-height: auto;
    }
    
    .contact-info-section {
        border-right: none;
        border-bottom: 1px solid #dee2e6;
        padding: 40px 30px;
    }
    
    .contact-divider {
        flex-direction: row;
        min-width: auto;
        padding: 20px 40px;
        background: #f8f9fa;
    }
    
    .contact-divider::before {
        display: none;
    }
    
    .divider-text {
        writing-mode: horizontal-tb;
        transform: none;
        padding: 0 20px;
        position: relative;
    }
    
    .divider-text::before,
    .divider-text::after {
        content: '';
        position: absolute;
        top: 50%;
        width: 40px;
        height: 1px;
        background: linear-gradient(90deg, transparent, #1e429a, transparent);
    }
    
    .divider-text::before {
        right: 100%;
        margin-right: 15px;
    }
    
    .divider-text::after {
        left: 100%;
        margin-left: 15px;
    }
    
    .feedback-section {
        padding: 40px 30px;
    }
}

@media (max-width: 768px) {
    .contact-container {
        padding: 0 15px;
        margin: 10px auto;
    }
    
    .contact-info-section,
    .feedback-section {
        padding: 30px 20px;
    }
    
    .contact-info-content h3,
    .feedback-content h3 {
        font-size: 1.3rem;
        margin-bottom: 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .contact-divider {
        padding: 15px 20px;
    }
    
    .divider-text {
        font-size: 1rem;
        padding: 0 15px;
    }
    
    .divider-text::before,
    .divider-text::after {
        width: 30px;
    }
    
    .contact-info-content p {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    .contact-info-content strong {
        min-width: 100px;
    }
    
    .form-label {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .contact-content {
        border-radius: 12px;
        margin: 0 10px;
    }
    
    .contact-info-section,
    .feedback-section {
        padding: 25px 15px;
    }
    
    .contact-info-content h3,
    .feedback-content h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .contact-info-content p {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .contact-info-content strong {
        min-width: 80px;
        font-size: 0.9rem;
    }
    
    .feedback-description {
        font-size: 0.95rem;
    }
    
    .form-control {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .submit-btn {
        padding: 14px 30px;
        font-size: 1rem;
        min-width: 200px;
    }
    
    .contact-image {
        margin-top: 30px;
        padding: 15px;
    }
    
    .contact-image img {
        max-width: 140px;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .form-label {
        font-size: 0.85rem;
    }
}
