/* ── Contact Page Styles ── */

/* Navbar override – luôn dark trên trang con */
.navbar.scrolled { background: rgba(4,78,90,.97); }

/* ── Page Hero ── */
.page-hero {
    position: relative;
    min-height: 380px;
    padding-top: 64px; /* bù navbar fixed */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(135deg, #064e5a 0%, var(--primary) 60%, #098ba0 100%);
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(6,78,90,.55) 0%, transparent 70%);
}
.page-hero-content {
    position: relative; z-index: 2;
    width: 100%;
    padding-bottom: 2.5rem;
}
.page-hero h1 {
    color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; margin-bottom: .65rem;
}
.page-hero p {
    color: rgba(255,255,255,.82); font-size: 1rem;
    max-width: 520px; line-height: 1.65;
}

/* ── Breadcrumb bar (dưới hero) ── */
.breadcrumb-bar {
    background: #f8fffe;
    border-bottom: 1px solid #e5e7eb;
    padding: .75rem 0;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .82rem;
    color: #6b7280;
}
.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--primary); font-weight: 600; }
.breadcrumb svg { color: #9ca3af; }

/* ── Contact Section ── */
.contact-section { padding: 5rem 0; background: var(--bg-light); }

.contact-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 3rem; align-items: start;
}

/* ── Info bên trái ── */
.contact-info h2 {
    font-size: 1.6rem; color: var(--dark);
    margin-bottom: .75rem;
}
.info-desc {
    color: var(--text-light); font-size: .9rem;
    line-height: 1.7; margin-bottom: 2rem;
}
.info-cards { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.info-card {
    display: flex; align-items: flex-start; gap: 1rem;
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.1rem 1.25rem;
    transition: box-shadow var(--transition);
}
.info-card:hover { box-shadow: var(--shadow); }
.info-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: linear-gradient(135deg, rgba(97,192,145,.15), rgba(9,139,160,.1));
    border-radius: 10px; display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.info-label { font-size: .75rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.info-value { font-size: .9rem; color: var(--dark); font-weight: 500; line-height: 1.5; }
a.info-value { color: var(--primary); }
a.info-value:hover { color: var(--primary-dark); }
.info-social { margin-top: 1.5rem; }

/* ── Form bên phải ── */
.form-card {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2.5rem;
    box-shadow: var(--shadow);
}
.form-card h3 { font-size: 1.3rem; color: var(--dark); margin-bottom: .35rem; }

.cf-row { display: grid; gap: 1.25rem; margin-bottom: 1.25rem; }
.cf-row-2 { grid-template-columns: 1fr 1fr; }

.cf-group { display: flex; flex-direction: column; gap: .4rem; }
.cf-group label { font-size: .82rem; font-weight: 600; color: var(--text); }
.required { color: #ef4444; }

.cf-input {
    width: 100%; padding: .75rem 1rem;
    border: 1.5px solid var(--border); border-radius: var(--radius);
    font-size: .9rem; color: var(--dark); background: var(--white);
    font-family: inherit; transition: border-color .2s, box-shadow .2s;
    outline: none;
}
.cf-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4,114,131,.1);
}
.cf-input::placeholder { color: var(--text-light); }
.cf-select { cursor: pointer; 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='%239CA3AF' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .75rem center; padding-right: 2.5rem; }
.cf-textarea { resize: vertical; min-height: 130px; }

.cf-submit {
    display: inline-flex; align-items: center; gap: .6rem;
    width: 100%; justify-content: center;
    padding: .95rem 2rem; margin-top: .5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; border: none; border-radius: 50px;
    font-size: 1rem; font-weight: 700; cursor: pointer;
    font-family: inherit; transition: all var(--transition);
    box-shadow: 0 4px 20px rgba(4,114,131,.3);
}
.cf-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(4,114,131,.4); }
.cf-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }

.form-alert {
    display: flex; align-items: center; gap: .6rem;
    padding: .85rem 1rem; border-radius: var(--radius);
    font-size: .875rem; margin-bottom: 1.5rem;
}
.form-alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ── Success state ── */
.success-state {
    background: var(--white); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 3.5rem 2.5rem;
    text-align: center; box-shadow: var(--shadow);
}
.success-icon {
    width: 80px; height: 80px; margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(97,192,145,.2), rgba(9,139,160,.15));
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    color: var(--accent);
}
.success-state h3 { font-size: 1.5rem; margin-bottom: .75rem; color: var(--dark); }
.success-state p { color: var(--text-light); font-size: .95rem; max-width: 340px; margin: 0 auto; }
.success-state .btn { display: inline-flex; margin: .4rem; }

/* ── CTA Bottom ── */
.contact-bottom { padding: 4rem 0; background: var(--white); }
.contact-bottom-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; }

.cta-card {
    background: var(--bg-light); border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 2rem;
    text-align: center; transition: all var(--transition);
}
.cta-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
.cta-icon {
    width: 60px; height: 60px; margin: 0 auto 1.25rem;
    background: linear-gradient(135deg, rgba(97,192,145,.15), rgba(9,139,160,.1));
    border-radius: 16px; display: flex; align-items: center; justify-content: center;
    color: var(--primary);
}
.cta-card h3 { font-size: 1.05rem; color: var(--dark); margin-bottom: .65rem; }
.cta-card p  { font-size: .85rem; color: var(--text-light); margin-bottom: 1.5rem; line-height: 1.6; }

/* ── Spinner ── */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-bottom-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
    .cf-row-2 { grid-template-columns: 1fr; }
    .contact-bottom-grid { grid-template-columns: 1fr; }
    .form-card { padding: 1.75rem 1.25rem; }
    .page-hero { height: 280px; }
}
