/* ============================================================
   CONTACT PAGE STYLES
   ============================================================ */

/* 1. Banner */
.uten-contact-banner {
    position: relative;
    padding: 80px 0 120px;
    background: linear-gradient(135deg, #287b38 0%, #1d5c2a 100%);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

/* Faint background circles */
.uten-contact-banner::before,
.uten-contact-banner::after {
    content: '';
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}
.uten-contact-banner::before {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: 10%;
}
.uten-contact-banner::after {
    width: 500px;
    height: 500px;
    bottom: -200px;
    right: -100px;
}

.uten-contact-banner-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    opacity: 0;
}

.uten-contact-banner-content.is-visible {
    animation: fadeInLeftSmooth 2s ease-out forwards;
}

@keyframes fadeInLeftSmooth {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

.uten-contact-banner .main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: #fff;
    margin-bottom: 24px;
    font-family: serif;
    letter-spacing: 1px;
}

.uten-contact-banner .sig-title {
    font-family: 'Brush Script MT', cursive;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: #f28200;
    margin-bottom: 20px;
    font-weight: 300;
}

.uten-contact-banner .banner-divider {
    width: 60px;
    height: 2px;
    background: #f28200;
    margin: 0 auto 30px;
}

.uten-contact-banner .banner-desc {
    font-size: 16px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.uten-contact-banner .banner-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.uten-contact-banner .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background 0.3s ease, border-color 0.3s ease;
}
.uten-contact-banner .btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.uten-contact-banner .btn-outline svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.uten-contact-banner .uten-wave-divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 1;
}
.uten-contact-banner .uten-wave-divider svg {
    position: relative;
    display: block;
    width: calc(100% + 1.3px);
    height: 60px;
}

/* 2. Quick Channels */
.uten-quick-channels {
    padding: 80px 20px 40px;
    text-align: center;
    background: #fdfdfd;
}

.section-subtitle {
    font-size: 13px;
    font-weight: 700;
    color: #287b38;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    color: #222;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: #666;
    margin-bottom: 50px;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.channel-card {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    text-decoration: none;
    text-align: left;
    position: relative;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    opacity: 0;
}

.channel-card.is-visible {
    animation: fadeInUpSmooth 2s ease-out forwards;
}

.channel-card:nth-child(1) { animation-delay: 0.1s; }
.channel-card:nth-child(2) { animation-delay: 0.2s; }
.channel-card:nth-child(3) { animation-delay: 0.3s; }
.channel-card:nth-child(4) { animation-delay: 0.4s; }

.channel-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.channel-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    flex-shrink: 0;
}
.channel-icon svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.channel-icon.zalo { background: #0068ff; }
.channel-icon.whatsapp { background: #25d366; }
.channel-icon.phone { background: #287b38; }
.channel-icon.email { background: #ea4335; }

.channel-info h4 {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 700;
    color: #222;
}

.channel-info p {
    margin: 0;
    font-size: 13px;
    color: #777;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.channel-arrow {
    margin-left: auto;
    color: #ccc;
    font-size: 18px;
}

.channel-card.zalo .channel-arrow { color: #0068ff; }
.channel-card.whatsapp .channel-arrow { color: #25d366; }
.channel-card.phone .channel-arrow { color: #287b38; }
.channel-card.email .channel-arrow { color: #ea4335; }

/* 3. Map & Form Section */
.uten-map-form-section {
    padding: 40px 20px 100px;
    background: #fdfdfd;
}

.map-form-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

/* Left: Map & Info */
.map-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-wrapper {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    height: 300px;
}
.map-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card-item {
    display: flex;
    align-items: flex-start;
    background: #fff;
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    opacity: 0;
}

.info-card-item.is-visible {
    animation: fadeInUpSmooth 2s ease-out forwards;
}

.info-card-item:nth-child(1) { animation-delay: 0.1s; }
.info-card-item:nth-child(2) { animation-delay: 0.2s; }
.info-card-item:nth-child(3) { animation-delay: 0.3s; }
.info-card-item:nth-child(4) { animation-delay: 0.4s; }

.info-card-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.info-icon {
    width: 40px;
    height: 40px;
    background: #f28200;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}
.info-icon svg {
    width: 20px;
    height: 20px;
    fill: #287b38;
}

.info-text h4 {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text p {
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* Right: Form */
.form-column {
    background: #fff;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
}

.form-column .section-subtitle {
    margin-bottom: 8px;
}

.form-column .section-title {
    margin-bottom: 12px;
}

.form-column .section-desc {
    margin-bottom: 30px;
    font-size: 15px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #eee;
}

.uten-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group.full {
    grid-column: span 2;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group label span.required {
    color: #ea4335;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    color: #333;
    background: #f9f9f9;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.form-group textarea {
    min-height: 130px;
    resize: vertical;
}

/* Fix riêng cho dropdown Chủ đề - tránh bị cắt chữ + mũi tên tùy chỉnh */
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    line-height: 1.4 !important;
    cursor: pointer;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23287b38' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
    padding-right: 44px !important;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #287b38;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(175, 138, 48, 0.1);
}

.form-submit-row {
    margin-top: 30px;
    grid-column: span 2;
}

.btn-submit-contact {
    background: #287b38;
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit-contact:hover {
    background: #1d5c2a;
    transform: translateY(-2px);
}

.btn-submit-contact.loading {
    opacity: 0.8;
    pointer-events: none;
}

.btn-submit-contact .btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

.btn-submit-contact.loading .btn-spinner {
    display: inline-block;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.form-alert {
    display: none;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    font-weight: 600;
    font-size: 14.5px;
}

.form-alert.alert-success {
    background: #e6f4ea;
    color: #1e8e3e;
    border: 1px solid #ceead6;
}

.form-alert.alert-error {
    background: #fce8e6;
    color: #d93025;
    border: 1px solid #fad2cf;
}

/* Responsive */
@media (max-width: 992px) {
    .channels-grid {
        grid-template-columns: 1fr 1fr;
    }
    .map-form-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 576px) {
    .channels-grid {
        grid-template-columns: 1fr;
    }
    .uten-form-grid {
        grid-template-columns: 1fr;
    }
    .form-group.full {
        grid-column: span 1;
    }
    .form-submit-row {
        grid-column: span 1;
    }
    .form-column {
        padding: 24px;
    }
}

@keyframes fadeInUpSmooth {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}
