/* ========================================
   Contact Page Styles - CNHAWE Style
   ======================================== */


/* Contact Hero Section */

/* Animations */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-header-oem {
    position: relative;
    padding: 150px 0;
    text-align: center;
    overflow: hidden;
}

.hero-image-oem {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    animation: slideDown 1s ease-out forwards;
}

.hero-image-oem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.green-overlay-oem {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(30, 64, 175, 0.8);
    z-index: 2;
}

.page-header-content {
    position: relative;
    z-index: 3;
    animation: slideInFromLeft 1s ease-out 0.3s forwards;
    opacity: 0;
}

.page-header-content h1 {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header-content p {
    font-size: 18px;
    color: #fff;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}


/* Contact Main Section */

.contact-main-section {
    padding: 80px 0;
    background-color: #fff;
    position: relative;
    z-index: 1;
}

.contact-main-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}


/* Contact Info Section */

.contact-info-section h2,
.contact-form-section h2 {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.contact-intro,
.form-intro {
    font-size: 16px;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.7;
}

/* Contact Section Animations */
.contact-info-section {
    animation: slideInLeft 1s ease-out 0.6s forwards;
    opacity: 0;
}

.contact-form-section {
    animation: slideInRight 1s ease-out 0.9s forwards;
    opacity: 0;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.info-icon {
    width: 60px;
    height: 60px;
    background-color: #1E40AF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 24px;
    color: #fff;
}

.info-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.info-content p {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 5px;
}

.info-content p:last-child {
    margin-bottom: 0;
}


/* Contact Form Section */

.contact-main-form {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.contact-main-form .form-row {
    margin-bottom: 15px;
}

.contact-main-form input,
.contact-main-form select,
.contact-main-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    transition: all 0.3s ease;
    background-color: #fff;
}

.contact-main-form input:focus,
.contact-main-form select:focus,
.contact-main-form textarea:focus {
    outline: none;
    border-color: #1E40AF;
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.contact-main-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

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

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.checkbox-row label {
    font-size: 14px;
    color: #666;
    cursor: pointer;
    margin: 0;
}

.btn-submit-large {
    width: 100%;
    background-color: #1E40AF;
    color: #fff;
    padding: 14px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit-large:hover {
    background-color: #1E3A8A;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(30, 64, 175, 0.3);
}

.btn-submit-large:active {
    transform: translateY(0);
}


/* Map Section */

.map-section {
    margin-top: 80px;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    display: block;
    width: 100%;
    height: 400px;
    border: none;
}


/* Active Nav Link */

.nav-menu a.active {
    color: #60A5FA;
}

.nav-menu a.active::after {
    width: 100%;
}


/* Responsive Design */

@media (max-width: 1024px) {
    .contact-main-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .page-header-content h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 60px 0;
    }
    .page-header-content h1 {
        font-size: 32px;
    }
    .page-header-content p {
        font-size: 16px;
    }
    .contact-main-section {
        padding: 60px 0;
    }
    .contact-main-form {
        padding: 30px 20px;
    }
    .info-item {
        padding: 20px;
    }
    .map-container iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .page-header-content h1 {
        font-size: 28px;
    }
    .contact-info-section h2,
    .contact-form-section h2 {
        font-size: 24px;
    }
    .info-item {
        flex-direction: column;
        text-align: center;
    }
    .info-icon {
        margin: 0 auto 15px;
    }
    .map-container iframe {
        height: 250px;
    }
}


/* Form Animations */

.contact-main-form input,
.contact-main-form select,
.contact-main-form textarea {
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.5s ease forwards;
}

.contact-main-form .form-row:nth-child(1) input {
    animation-delay: 0.1s;
}

.contact-main-form .form-row:nth-child(2) input {
    animation-delay: 0.2s;
}

.contact-main-form .form-row:nth-child(3) input {
    animation-delay: 0.3s;
}

.contact-main-form .form-row:nth-child(4) input {
    animation-delay: 0.4s;
}

.contact-main-form .form-row:nth-child(5) select {
    animation-delay: 0.5s;
}

.contact-main-form .form-row:nth-child(6) textarea {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Info Item Animation */

.info-item {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft 0.5s ease forwards;
}

.info-item:nth-child(1) {
    animation-delay: 0.1s;
}

.info-item:nth-child(2) {
    animation-delay: 0.2s;
}

.info-item:nth-child(3) {
    animation-delay: 0.3s;
}

.info-item:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* Success Message */

.form-success {
    display: none;
    padding: 20px;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 4px;
    color: #155724;
    margin-top: 20px;
    animation: fadeIn 0.5s ease;
}

.form-success.show {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}