﻿/* Contact Section */
.contact-section {
    padding: 60px 0;
}

.contact-header {
    margin-bottom: 50px;
}

.contact-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 20px;
}

.contact-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.contact-title-row-1 {
    justify-content: center;
    width: 100%;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.contact-title-row-2 {
    justify-content: center;
    width: 100%;
    max-width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding-left: 0;
}

.contact-title-text {
    font-size: 56px;
    font-weight: 700;
    color: #000000;
    line-height: 1.2;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: fit-content;
    max-width: 100%;
    padding: 0 30px;
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    color: #ffffff;
    font-size: 56px;
    font-weight: 600;
}

.contact-badge .badge-label {
    display: inline-flex;
    align-items: center;
    transform: rotate(-0.48deg);
}

.lang-vi .feel-free-badge {
    background-image: url('../images/frontend-pages/vi-badge-feel-free.png');
}

.feel-free-badge {
    background-image: url('../images/frontend-pages/badge-feel-free.png');
}

.any-inquires-badge {
    background-image: url('../images/frontend-pages/badge-any-inquires.png');
}

.contact-subtitle {
    font-size: 20px;
    color: #000000;
    margin: 0;
    max-width: 574px;
    margin-left: auto;
    margin-right: auto;
}

.contact-content-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    align-items: stretch;
}

/* Contact Form */
.contact-form-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 30px 20px;
}

.form-field {
    position: relative;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    position: absolute;
    top: -8px;
    left: 12px;
    font-size: 12px;
    font-weight: 700;
    color: #383838;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 1) 47%);
    padding: 0 4px;
    z-index: 1;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 0.5px solid #979797;
    border-radius: 8px;
    font-size: 16px;
    color: #2d2d2d;
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.form-field input {
    height: 48px;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #8105BD;
    box-shadow: 0 0 0 3px rgba(129, 5, 189, 0.1);
}

.contact-actions {
    display: flex;
    justify-content: center;
}

.contact-submit {
    width: 100%;
    height: 52px;
    font-size: 24px;
    line-height: 52px;
    padding: 0 24px;
    background: #8105BD !important;
    border: none;
    border-radius: 8px;
}

/* Contact Details Card */
.contact-details-wrapper {
    flex: 1;
}

.contact-details-card {
    background: rgba(129, 5, 189, 0.5);
    border-radius: 24px;
    padding: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.contact-detail-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-detail-title {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.contact-detail-description {
    font-size: 14px;
    color: #ffffff;
    margin: 0;
    line-height: 1.5;
}

.contact-detail-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #EEE3F8;
    border-radius: 8px;
    padding: 14px 20px;
    text-decoration: none;
    color: #011212;
    font-size: 16px;
    font-weight: 600;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    width: fit-content;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
}

.contact-detail-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.contact-icon {
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1200px) {
    .contact-badge {
        font-size: 42px;
    }

    .contact-title-text {
        font-size: 42px;
    }
}

@media (max-width: 1024px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-content-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-details-card {
        padding: 32px;
        flex-direction: row;
        gap: 24px;
        align-items: flex-start;
    }

    .contact-detail-item {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0;
    }

    .contact-header {
        margin-bottom: 40px;
    }

    .contact-title-wrapper {
        align-items: center;
        gap: 6px;
    }

    .contact-title-row-1,
    .contact-title-row-2 {
        justify-content: center;
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
        width: 100%;
    }

    .contact-title-row {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        align-items: center;
    }

    .contact-title-text {
        font-size: 36px;
    }

    .contact-badge {
        padding: 0 20px;
        font-size: 36px;
    }

    .contact-subtitle {
        font-size: 24px;
        padding: 0 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .contact-details-card {
        padding: 28px;
        gap: 24px;
        flex-direction: column;
    }

    .contact-detail-item {
        flex: none;
    }

    .contact-detail-title {
        font-size: 24px;
    }

    .contact-detail-description {
        font-size: 14px;
    }

    .contact-detail-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .contact-section {
        padding: 30px 0;
    }

    .contact-header {
        margin-bottom: 30px;
    }

    .contact-title-wrapper {
        gap: 4px;
    }

    .contact-title-row-1,
    .contact-title-row-2 {
        padding-left: 0;
    }

    .contact-title-row {
        gap: 6px;
    }

    .contact-title-text {
        font-size: 24px;
    }

    .contact-badge {
        padding: 0 16px;
        font-size: 24px;
    }

    .lang-vi .contact-title-text {
        font-size: 20px;
    }

    .lang-vi .contact-badge {
        font-size: 20px;
    }

    .contact-subtitle {
        font-size: 14px;
        padding: 0 12px;
    }

    .lang-vi .contact-subtitle {
        font-size: 13px;
    }

    .contact-submit {
        width: 100%;
        height: 44px;
        font-size: 18px;
        line-height: 44px;
        padding: 0 20px;
    }

    .contact-details-card {
        padding: 20px;
        gap: 20px;
    }

    .contact-detail-title {
        font-size: 22px;
    }

    .lang-vi .contact-detail-title {
        font-size: 20px;
    }

    .contact-detail-description {
        font-size: 13px;
    }

    .contact-detail-button {
        width: 100%;
        justify-content: center;
        padding: 12px 16px;
        font-size: 14px;
    }
}

/* AI Assistant Section */
.ai-assistant-section {
    padding: 40px 0;
}

.ai-assistant-title {
    font-size: 48px;
    font-weight: 700;
    color: #8105BD;
    text-align: center;
    margin: 0 0 40px 0;
}

.ai-assistant-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.ai-input-container {
    position: relative;
    margin-bottom: 24px;
}

.ai-input {
    width: 100%;
    min-height: 260px;
    padding: 20px;
    border: 0.5px solid #979797;
    border-radius: 8px;
    font-size: 20px;
    color: #2d2d2d;
    background: #ffffff;
    outline: none;
    resize: vertical;
    font-family: inherit;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.ai-input::placeholder {
    color: #979797;
    font-size: 20px;
}

.ai-input-actions {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.ai-input-buttons-left {
    display: flex;
    gap: 8px;
}

.ai-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    border: 0.5px solid #979797;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.ai-search-btn,
.ai-analysis-btn {
    color: #011212;
}

.ai-send-btn {
    color: #8105BD;
    background-color: #EEE3F8;
}

.ai-action-btn:hover {
    opacity: 0.8;
    transform: translateY(-1px);
}

.ai-btn-icon {
    flex-shrink: 0;
}

.ai-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.ai-category-btn {
    padding: 10px 20px;
    border: 0.5px solid #8105BD;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #011212;
    background: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 700;
}

.ai-category-btn:hover {
    background: #EEE3F8;
}

.ai-category-active {
    background: #8105BD;
    color: #ffffff;
    border-color: #8105BD;
}

.ai-category-active:hover {
    background: #8105BD;
    opacity: 0.9;
}

/* AI Assistant Responsive */
@media (max-width: 1024px) {
    .ai-assistant-section {
        padding: 30px 0;
    }

    .ai-assistant-title {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .ai-assistant-section {
        padding: 20px 0;
    }

    .ai-assistant-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .ai-input {
        min-height: 220px;
        padding: 16px;
        font-size: 18px;
    }

    .ai-input::placeholder {
        font-size: 18px;
    }

    .ai-input-actions {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        padding: 0 16px;
        bottom: 15px;
    }

    .ai-input-buttons-left {
        width: 100%;
        justify-content: flex-start;
    }

    .ai-action-btn {
        flex: 1;
        justify-content: center;
    }

    .ai-send-btn {
        width: 100%;
        justify-content: center;
    }

    .ai-categories {
        gap: 10px;
    }

    .ai-category-btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .ai-assistant-section {
        padding: 20px 0;
    }

    .ai-assistant-title {
        font-size: 28px;
        margin-bottom: 24px;
    }

    .lang-vi .ai-assistant-title {
        font-size: 22px;
    }

    .ai-input {
        min-height: 200px;
        padding: 14px;
        font-size: 16px;
    }

    .ai-input::placeholder {
        font-size: 16px;
    }

    .ai-input-actions {
        padding: 0 14px;
        bottom: 15px;
    }

    .ai-action-btn {
        padding: 6px 12px;
        font-size: 12px;
    }

    .ai-btn-icon {
        width: 10px;
        height: 10px;
    }

    .ai-categories {
        gap: 8px;
    }

    .ai-category-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
}

