/**
 * Contact Page Styles
 * Applies to: /lien-he (contact)
 * Uses CSS variables from components.css
 */

/* ==========================================================================
   CONTACT HERO
   ========================================================================== */

.contact-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, #667eea 100%);
    padding: 48px 0;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.contact-hero .breadcrumb {
    margin-bottom: 24px;
}

.contact-hero .breadcrumb__link {
    color: rgba(255, 255, 255, 0.8);
}

.contact-hero .breadcrumb__link:hover {
    color: white;
}

.contact-hero .breadcrumb__sep {
    color: rgba(255, 255, 255, 0.5);
}

.contact-hero .breadcrumb__current {
    color: white;
}

.contact-hero__content {
    position: relative;
    text-align: center;
    color: white;
    max-width: 600px;
    margin: 0 auto;
}

.contact-hero__eyebrow {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 12px;
    backdrop-filter: blur(4px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-hero__title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 12px;
}

.contact-hero__desc {
    font-size: 1rem;
    opacity: 0.9;
    margin: 0;
}

/* ==========================================================================
   CONTACT PAGE LAYOUT
   ========================================================================== */

.two-column-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 32px;
    margin-top: 24px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   CONTACT FORM
   ========================================================================== */

.contact-form-card {
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    overflow: hidden;
}

.contact-form-card__header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--color-text);
}

.contact-form-card__header svg {
    color: var(--color-primary);
}

.contact-form-card__body {
    padding: 24px;
}

/* Form Grid */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

/* Form Items */
.ant-form-item {
    margin-bottom: 20px;
}

.ant-form-item:last-child {
    margin-bottom: 0;
}

.ant-form-item-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
}

.ant-form-item-required::before {
    content: '*';
    color: #ff4d4f;
    margin-right: 4px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

.input-with-icon .ant-input {
    padding-left: 44px;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.ant-input,
.ant-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--color-text);
    background: white;
    transition: all 0.2s ease;
}

.ant-input:focus,
.ant-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.ant-input::placeholder {
    color: var(--color-text-muted);
}

textarea.ant-input {
    resize: vertical;
    min-height: 120px;
}

.ant-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    cursor: pointer;
}

/* ==========================================================================
   SIDEBAR CARD
   ========================================================================== */

.sidebar-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    margin-bottom: 20px;
}

.sidebar-card:last-child {
    margin-bottom: 0;
}

.sidebar-card--cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, #667eea 100%);
    color: white;
}

.sidebar-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 600;
    font-size: 15px;
    color: var(--color-text);
}

.sidebar-card__header svg {
    color: var(--color-primary);
}

.sidebar-card__body {
    padding: 20px;
}

.sidebar-card__body--flush {
    padding: 0;
}

/* ==========================================================================
   CONTACT CARD (Main form card)
   ========================================================================== */

.contact-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.contact-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-text);
}

.contact-card__header svg {
    color: var(--color-primary);
}

.contact-card__body {
    padding: 24px;
}

/* ==========================================================================
   CONTACT INFO SIDEBAR
   ========================================================================== */

.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-bottom: 1px solid var(--color-border-light);
}

.contact-info-item:last-child {
    border-bottom: none;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon--blue {
    background: rgba(22, 119, 255, 0.1);
    color: var(--color-primary);
}

.contact-info-icon--green {
    background: rgba(82, 196, 26, 0.1);
    color: #52c41a;
}

.contact-info-icon--orange {
    background: rgba(250, 173, 20, 0.1);
    color: #faad14;
}

.contact-info-icon--purple {
    background: rgba(114, 46, 209, 0.1);
    color: #722ed1;
}

.contact-info__content {
    flex: 1;
}

.contact-info__label {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 0 0 4px;
}

.contact-info__value {
    font-weight: 500;
    color: var(--color-text);
    line-height: 1.5;
    margin: 0;
}

.contact-info__value--highlight {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
}

.contact-info__note {
    font-size: 13px;
    color: var(--color-text-muted);
    margin: 4px 0 0;
}

/* ==========================================================================
   SOCIAL BUTTONS
   ========================================================================== */

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-btn--facebook {
    background: #e7f3ff;
    color: #1877f2;
}

.social-btn--facebook:hover {
    background: #1877f2;
    color: white;
}

.social-btn--zalo {
    background: #e6f4ff;
    color: #0068ff;
}

.social-btn--zalo:hover {
    background: #0068ff;
    color: white;
}

.social-btn--messenger {
    background: #efe6ff;
    color: #9b59b6;
}

.social-btn--messenger:hover {
    background: #9b59b6;
    color: white;
}

/* ==========================================================================
   CTA CARD
   ========================================================================== */

.cta-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, #667eea 100%);
    border-radius: 16px;
    padding: 28px;
    text-align: center;
    color: white;
}

.cta-card__icon {
    margin-bottom: 12px;
}

.cta-card__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 10px;
}

.cta-card__desc {
    font-size: 14px;
    opacity: 0.9;
    margin: 0 0 8px;
}

.cta-card__phone {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-section {
    margin-top: 40px;
}

.faq-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.faq-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 600;
    font-size: 17px;
    color: var(--color-text);
}

.faq-card__header svg {
    color: var(--color-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.faq-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--color-border-light);
    border-right: 1px solid var(--color-border-light);
    transition: background 0.2s ease;
}

.faq-item:hover {
    background: var(--color-bg-subtle);
}

.faq-item:nth-child(2n) {
    border-right: none;
}

.faq-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.faq-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e6f4ff 0%, #bae0ff 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-primary);
}

.faq-item__content {
    flex: 1;
}

.faq-item__title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-text);
}

.faq-item__desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Legacy faq-grid-item support */
.faq-grid-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    border-bottom: 1px solid var(--color-border-light);
    border-right: 1px solid var(--color-border-light);
    transition: background 0.2s ease;
}

.faq-grid-item:hover {
    background: var(--color-bg-subtle);
}

.faq-grid-item:nth-child(2n) {
    border-right: none;
}

.faq-grid-item:nth-last-child(-n+2) {
    border-bottom: none;
}

.faq-grid-item h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--color-text);
}

.faq-grid-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   ALERTS
   ========================================================================== */

.ant-alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 14px;
    margin-bottom: 24px;
}

.ant-alert-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.ant-alert-content {
    flex: 1;
    line-height: 1.5;
}

.ant-alert-error {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    color: #cf1322;
}

.ant-alert-success {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
    color: #389e0d;
}

/* ==========================================================================
   FORM COMPONENTS
   ========================================================================== */

.form-group {
    margin-bottom: 20px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
    font-size: 14px;
}

.form-label--required::after {
    content: '*';
    color: #ff4d4f;
    margin-left: 4px;
}

.form-input-wrapper {
    position: relative;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    color: var(--color-text);
    background: white;
    transition: all 0.2s ease;
}

.form-input--icon {
    padding-left: 44px;
}

.form-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(0, 0, 0, 0.25);
    pointer-events: none;
}

.form-select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.form-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 14px;
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1);
}

.btn-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-submit:hover {
    background: #0958d9;
    transform: translateY(-1px);
}

/* Social Hint */
.social-hint {
    font-size: 13px;
    color: var(--color-text-muted);
    margin-top: 16px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
    .two-column-layout {
        grid-template-columns: 1fr 360px;
    }
}

@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }

    .two-column-layout aside {
        order: -1;
    }

    .faq-grid {
        grid-template-columns: 1fr;
    }

    .faq-grid-item {
        border-right: none !important;
    }

    .faq-grid-item:last-child {
        border-bottom: none;
    }

    .contact-hero {
        padding: 32px 0;
    }

    .contact-hero__title {
        font-size: 28px;
    }
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .contact-form-card__body,
    .contact-card__body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .faq-grid-item {
        padding: 16px;
        flex-direction: column;
        text-align: center;
    }

    .faq-icon {
        margin: 0 auto;
    }

    .social-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

.contact-info-item {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.contact-info-item:nth-child(1) { animation-delay: 0.1s; }
.contact-info-item:nth-child(2) { animation-delay: 0.15s; }
.contact-info-item:nth-child(3) { animation-delay: 0.2s; }
.contact-info-item:nth-child(4) { animation-delay: 0.25s; }
