/* ── Contact Page — contact.css ─────────────────────────────────── */

/* ── Hero ───────────────────────────────────────────────────────── */
.contact-hero {
    background: linear-gradient(135deg, var(--cn-navy, #092c40) 0%, #0d4060 100%);
    padding: 64px 0 56px;
    text-align: center;
}
.contact-hero h1 {
    font-size: 38px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    letter-spacing: -.5px;
}
.contact-hero p {
    font-size: 16px;
    color: rgba(255,255,255,.75);
    margin: 0;
}

/* ── World Map (decorative) ─────────────────────────────────────── */
.contact_map_box {
    width: 100%;
    background: #f0f4f8;
    overflow: hidden;
    line-height: 0;
}
.contact_responsive-image {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    object-fit: cover;
}

/* ── Office Cards ───────────────────────────────────────────────── */
.contact-offices {
    background: #f7f9fc;
    padding: 64px 0 56px;
}
.contact-office-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.05);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: box-shadow .28s ease, transform .28s ease;
}
.contact-office-card:hover {
    box-shadow: 0 12px 36px rgba(0,0,0,.13);
    transform: translateY(-4px);
}
.contact-office-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 28px 20px;
    border-bottom: 1px solid #e2e8f0;
}
.contact-office-header > i {
    font-size: 28px;
    color: var(--cn-blue, #00a1e9);
    margin-top: 4px;
    flex-shrink: 0;
}
.contact-office-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--cn-navy, #092c40);
    margin: 0 0 6px;
}
.contact-office-header p {
    font-size: 13px;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
}

/* HK card accent */
.contact-office-card--hk .contact-office-header {
    background: linear-gradient(135deg, var(--cn-navy, #092c40) 0%, #0d4060 100%);
    border-bottom: none;
}
.contact-office-card--hk .contact-office-header > i,
.contact-office-card--hk .contact-office-header h3 {
    color: #ffffff;
}
.contact-office-card--hk .contact-office-header p {
    color: rgba(255,255,255,.82);
}

/* Contact details (phone/email) inside HK card */
.contact-office-details {
    padding: 20px 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-bottom: 1px solid #e2e8f0;
}
.contact-office-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
    color: #2d3748;
}
.contact-office-detail-row > i {
    font-size: 14px;
    color: var(--cn-blue, #00a1e9);
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px;
    text-align: center;
}
.contact-office-detail-row a {
    color: var(--cn-blue, #00a1e9);
    text-decoration: none;
    transition: color .2s;
}
.contact-office-detail-row a:hover {
    color: var(--cn-navy, #092c40);
    text-decoration: underline;
}

/* Map iframe wrapper */
.contact-office-map {
    flex: 1;
    min-height: 260px;
}
.contact-office-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    border: 0;
}

/* ── Contact Form ───────────────────────────────────────────────── */
.contact-form-section {
    background: var(--cn-navy, #092c40);
    padding: 72px 0 80px;
}
.contact-form-wrapper {
    max-width: 760px;
    margin: 0 auto;
}
.contact-form-header {
    text-align: center;
    margin-bottom: 40px;
}
.contact-form-header h2 {
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 10px;
}
.contact-form-header p {
    font-size: 14px;
    color: rgba(255,255,255,.65);
    margin: 0;
}

.contact-form .cf-group {
    margin-bottom: 20px;
}
.contact-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,.85);
    margin-bottom: 6px;
    letter-spacing: .3px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    color: #ffffff;
    font-size: 14px;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255,255,255,.38);
}
.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--cn-blue, #00a1e9);
    background: rgba(255,255,255,.13);
}
.contact-form textarea {
    resize: vertical;
    min-height: 130px;
}
.cf-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--cn-blue, #00a1e9) 0%, #0070a8 100%);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 13px 36px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 14px rgba(0,161,233,.4);
    margin-top: 8px;
}
.cf-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0,161,233,.5);
}

/* ── Form feedback ──────────────────────────────────────────────── */
.cf-feedback {
    margin-top: 16px;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: none;
}
.cf-feedback.cf-success {
    display: block;
    background: #e6f9f0;
    color: #1a7a4a;
    border: 1px solid #a3e8c5;
}
.cf-feedback.cf-error {
    display: block;
    background: #fdf0f0;
    color: #c0392b;
    border: 1px solid #f5b7b1;
}
.cf-submit:disabled {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .contact-hero h1  { font-size: 30px; }
    .contact-offices  { padding: 40px 0 32px; }
    .contact-form-section { padding: 52px 0 60px; }
}

@media (max-width: 767px) {
    .contact-hero     { padding: 44px 0 36px; }
    .contact-hero h1  { font-size: 26px; }
    .contact-hero p   { font-size: 14px; }
    .contact-office-card { margin-bottom: 24px; }
    .contact-office-map,
    .contact-office-map iframe { min-height: 200px; }
    .contact-form-wrapper { padding: 0 8px; }
}
