/* ========================================================
   MODULE CONTACT - GIAO DIỆN LIÊN HỆ ĐỒNG BỘ WEBSITE
   ======================================================== */

.contact-page-wrapper {
    background: #f7f9fa;
    padding: 30px 0 60px;
}

.contact-bodytext-intro {
    background: #fff;
    border: 1.5px solid #edf2f7;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 26px;
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.contact-main-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 991px) {
    .contact-main-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* Card Thông tin Bộ phận / Văn phòng */
.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-col:empty {
    display: none;
}

.contact-dep-card {
    background: #fff;
    border: 1.5px solid #edf2f7;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.contact-dep-card:hover {
    border-color: #ccebd4;
    box-shadow: 0 8px 24px rgba(26, 107, 53, 0.08);
}

.dep-card-header {
    background: linear-gradient(135deg, #0f3d1e 0%, #1a6b35 100%);
    color: #fff;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.dep-card-header h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.2px;
    color: #fff;
}

.dep-card-header i {
    font-size: 19px;
    color: #d4af37;
}

.dep-card-body {
    padding: 22px 20px;
}

.dep-image {
    margin-bottom: 16px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #edf2f7;
}

.dep-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.dep-note {
    font-size: 13.5px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px dashed #e2e8f0;
}

.dep-info-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dep-info-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13.5px;
    color: #333;
    line-height: 1.5;
}

.dep-info-item .info-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eef8f1;
    color: #1a6b35;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.dep-info-item .info-text {
    flex: 1;
    word-break: break-word;
}

.dep-info-item .info-text strong {
    color: #1a202c;
}

.dep-info-item .info-text a {
    color: #1a6b35;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.15s;
}

.dep-info-item .info-text a:hover {
    color: #0f3d1e;
    text-decoration: underline;
}

/* Card Biểu mẫu Gửi liên hệ */
.contact-form-card {
    background: #fff;
    border: 1.5px solid #edf2f7;
    border-radius: 16px;
    padding: 28px 28px 32px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .contact-form-card {
        padding: 20px 16px 24px;
    }
}

.contact-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.contact-card-title .bar {
    background: #d4af37;
    width: 4px;
    height: 24px;
    border-radius: 2px;
    display: inline-block;
}

.contact-card-title h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    text-transform: uppercase;
    color: #111;
    letter-spacing: -0.3px;
}

.contact-card-title h2 em {
    color: #d4af37;
    font-style: normal;
}

.contact-card-sub {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 22px;
}

/* Form Styles */
.contact-form-group {
    margin-bottom: 16px;
}

.contact-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 6px;
}

.contact-label .req {
    color: #e53e3e;
    margin-left: 2px;
}

.contact-login-hint {
    font-size: 12px;
    color: #1a6b35;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.contact-login-hint:hover {
    text-decoration: underline;
    color: #0f3d1e;
}

.contact-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.contact-input-wrap .contact-input-icon {
    position: absolute;
    left: 14px;
    font-size: 17px;
    color: #888;
    pointer-events: none;
    transition: color 0.2s;
    z-index: 2;
}

.contact-input-wrap .contact-input-icon.icon-textarea {
    top: 14px;
}

.contact-input,
.contact-select,
.contact-input-wrap .form-control {
    width: 100%;
    border: 1.5px solid #dcdcdc;
    border-radius: 8px;
    padding: 10px 14px 10px 42px;
    font-size: 13.5px;
    color: #333;
    background: #fff;
    transition: all 0.2s ease;
    outline: none;
    font-family: inherit;
    box-shadow: none;
    height: 44px;
    box-sizing: border-box;
}

.contact-input:focus,
.contact-select:focus,
.contact-input-wrap .form-control:focus {
    border-color: #1a6b35 !important;
    box-shadow: 0 0 0 3px rgba(26, 107, 53, 0.15) !important;
    background: #fff;
    outline: none;
}

.contact-input-wrap:focus-within .contact-input-icon {
    color: #1a6b35;
}

.contact-input.disabled,
.contact-input:disabled {
    background: #f7fafc;
    color: #718096;
    cursor: not-allowed;
    border-color: #edf2f7;
}

.contact-textarea,
.contact-input-wrap textarea.form-control {
    height: auto !important;
    min-height: 110px;
    resize: vertical;
    padding: 12px 14px 12px 42px;
    line-height: 1.5;
}

/* Validation states */
.has-error .contact-input,
.has-error .contact-input-wrap .form-control {
    border-color: #e53e3e !important;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15) !important;
}

.has-error .contact-input-icon {
    color: #e53e3e !important;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 600px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Custom Checkbox */
.contact-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #4a5568;
    user-select: none;
}

.contact-checkbox-label input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #1a6b35;
    cursor: pointer;
}

/* Captcha Block */
.contact-captcha-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-img-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    padding: 3px 6px;
}

.captcha-img-wrap img {
    border-radius: 5px;
    vertical-align: middle;
    height: 36px;
}

.btn-refresh-captcha {
    border: none;
    background: none;
    color: #1a6b35;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
}

.btn-refresh-captcha:hover {
    transform: rotate(180deg);
}

.captcha-input-wrap {
    flex: 1;
    min-width: 140px;
}

.captcha-input-wrap .contact-input {
    letter-spacing: 2px;
    font-weight: 700;
}

/* Action Buttons */
.contact-form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed #e2e8f0;
}

.btn-contact-submit {
    background: #1a6b35;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(26, 107, 53, 0.25);
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-contact-submit:hover {
    background: #14522a;
    box-shadow: 0 6px 18px rgba(26, 107, 53, 0.35);
    transform: translateY(-1px);
    color: #fff;
}

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

.btn-contact-reset {
    background: #edf2f7;
    color: #4a5568;
    font-weight: 600;
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-contact-reset:hover {
    background: #e2e8f0;
    color: #2d3748;
}

/* Contact Result Alert */
.contact-result {
    margin-top: 16px;
    border-radius: 8px;
    font-size: 13.5px;
    display: none;
}

.contact-result.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.contact-result.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

.contact-result.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    display: block;
}
