/**
 * Xe Tải VP - Contact Page & Lead Capture Section Styling
 */

.xetai-contact-section {
    padding: 35px 0 50px 0;
    width: 100%;
}

.xetai-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 32px;
    align-items: stretch;
    max-width: 1240px;
    margin: 0 auto;
}

/* ==========================================================================
   CỘT TRÁI: THÔNG TIN SHOWROOM & BẢN ĐỒ
   ========================================================================== */
.xetai-contact-info-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 28px;
    border: 1px solid rgba(0, 72, 143, 0.09);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.xetai-contact-info-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    color: #00254D !important;
    text-transform: uppercase !important;
    margin: 0 0 22px 0 !important;
    padding-bottom: 12px !important;
    border-bottom: 2px solid #f1f5f9 !important;
    position: relative !important;
    letter-spacing: 0.3px !important;
    line-height: 1.3 !important;
}

.xetai-contact-info-title::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, #D32F2F 0%, #B71C1C 100%);
    border-radius: 3px;
}

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

.xetai-ci-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f6;
    transition: all 0.25s ease;
}

.xetai-ci-item:hover {
    background: #ffffff;
    border-color: rgba(0, 72, 143, 0.25);
    box-shadow: 0 4px 14px rgba(0, 72, 143, 0.08);
    transform: translateX(4px);
}

.xetai-ci-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00488F 0%, #002b59 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 8px rgba(0, 72, 143, 0.25);
}

.xetai-ci-icon.icon-red {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.3);
}

.xetai-ci-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
}

.xetai-ci-content {
    flex: 1;
    min-width: 0;
}

.xetai-ci-label {
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}

.xetai-ci-val {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
    word-break: break-word;
}

.xetai-ci-val a {
    color: #00488F;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
}

.xetai-ci-val a:hover {
    color: #D32F2F;
}

.xetai-contact-map {
    margin-top: 22px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    height: 230px;
}

.xetai-contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* ==========================================================================
   CỘT PHẢI: FORM ĐĂNG KÝ TƯ VẤN & BÁO GIÁ
   ========================================================================== */
.xetai-contact-form-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 35px 32px;
    border: 1px solid rgba(0, 72, 143, 0.09);
    box-shadow: 0 10px 35px rgba(0, 72, 143, 0.06), 0 2px 8px rgba(0, 0, 0, 0.02);
}

.xetai-form-header {
    margin-bottom: 22px;
}

.xetai-form-title {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #00254D !important;
    text-transform: uppercase !important;
    margin: 0 0 6px 0 !important;
    letter-spacing: 0.3px !important;
    line-height: 1.3 !important;
}

.xetai-form-desc {
    font-size: 13.5px !important;
    color: #64748b !important;
    margin: 0 !important;
    line-height: 1.45 !important;
}

.xetai-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.xetai-form-group {
    margin-bottom: 16px;
}

.xetai-form-group label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.xetai-form-group label .required {
    color: #D32F2F;
    margin-left: 2px;
}

.xetai-form-group input,
.xetai-form-group select,
.xetai-form-group textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid #dbe3ed;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    display: block;
    margin: 0;
    height: 44px;
}

.xetai-form-group textarea {
    height: auto;
    min-height: 95px;
    resize: vertical;
    line-height: 1.5;
}

.xetai-form-group input:focus,
.xetai-form-group select:focus,
.xetai-form-group textarea:focus {
    background: #ffffff;
    border-color: #00488F;
    box-shadow: 0 0 0 3px rgba(0, 72, 143, 0.12);
}

.xetai-form-group input::placeholder,
.xetai-form-group textarea::placeholder {
    color: #94a3b8;
    font-size: 13px;
}

/* Nút Submit Báo Giá */
.xetai-btn-contact-submit {
    background: linear-gradient(135deg, #D32F2F 0%, #B71C1C 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    width: 100%;
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
    margin-top: 8px;
}

.xetai-btn-contact-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(211, 47, 47, 0.45);
}

.xetai-btn-contact-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Thông báo phản hồi */
.xetai-contact-alert {
    display: none;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 16px;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: center;
}

.xetai-contact-alert.success {
    display: block;
    background: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
    font-weight: 600;
}

.xetai-contact-alert.error {
    display: block;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    color: #991b1b;
    font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
    .xetai-contact-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .xetai-contact-info-card,
    .xetai-contact-form-card {
        padding: 24px 20px;
    }
    .xetai-form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
