/* =========================================
   CONTACT PAGE - PREMIUM DESIGN
   Matches HX project style perfectly
========================================= */

:root {
    --co-primary:       #C49A6C;
    --co-primary-dark:  #9E744F;
    --co-primary-light: #F9F3EB;
    --co-secondary:     #0F172A;
    --co-text:          #334155;
    --co-bg:            #F8FAFC;
    --co-white:         #FFFFFF;
    --co-shadow:        0 10px 40px rgba(0,0,0,0.08);
    --co-shadow-lg:     0 20px 60px rgba(0,0,0,0.12);
    --co-success:       #10b981;
    --co-error:         #ef4444;
    --co-whatsapp:      #25D366;
}

/* =========================================
   HERO
========================================= */
.contact-hero {
    position: relative;
    background: linear-gradient(135deg, var(--co-secondary) 0%, #1e293b 100%);
    padding: 100px 0 80px;
    overflow: hidden;
    text-align: center;
    z-index: 0;
}

.contact-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 60% 40%, rgba(196,154,108,0.14) 0%, transparent 55%);
    pointer-events: none;
}

.contact-hero .hero-shapes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }

.contact-hero .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,154,108,0.12) 0%, transparent 70%);
    animation: floatShape 20s ease-in-out infinite;
}
.contact-hero .shape-1 { width:320px; height:320px; top:-100px; right:5%;  animation-delay:0s; }
.contact-hero .shape-2 { width:220px; height:220px; bottom:-60px; left:10%; animation-delay:7s; }
.contact-hero .shape-3 { width:180px; height:180px; top:40%; left:-80px;   animation-delay:14s; }

@keyframes floatShape {
    0%,100% { transform:translate(0,0) scale(1);    opacity:.3; }
    50%      { transform:translate(20px,-20px) scale(1.1); opacity:.5; }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 9px 20px;
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
}
.hero-badge i { color: var(--co-primary); font-size: 16px; }

.hero-title {
    font-size: 46px;
    font-weight: 900;
    color: white;
    margin-bottom: 18px;
    line-height: 1.2;
    letter-spacing: -1.5px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--co-primary) 0%, #d4af7a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: rgba(255,255,255,0.78);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* =========================================
   MAIN SECTION
========================================= */
.contact-section {
    padding: 70px 0 90px;
    background: var(--co-bg);
    position: relative;
    z-index: 1;
}

/* =========================================
   FORM CARD
========================================= */
.contact-form-card {
    background: var(--co-white);
    border-radius: 26px;
    padding: 40px;
    box-shadow: var(--co-shadow-lg);
    position: relative;
    overflow: hidden;
}

.contact-form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--co-primary), var(--co-primary-dark));
}

.form-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.form-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--co-primary), var(--co-primary-dark));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(196,154,108,0.35);
}

.form-card-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--co-secondary);
    margin: 0 0 4px;
}

.form-card-header p {
    font-size: 14px;
    color: #94a3b8;
    margin: 0;
}

/* Fields */
.field-wrap {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.field-wrap label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--co-text);
}

.field-wrap label i { color: var(--co-primary); font-size: 14px; }

.req { color: var(--co-error); font-size: 15px; }
.opt { color: #94a3b8; font-weight: 400; font-size: 12px; }

.field-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    color: var(--co-secondary);
    background: white;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
}

.field-input:focus {
    outline: none;
    border-color: var(--co-primary);
    box-shadow: 0 0 0 4px rgba(196,154,108,0.1);
}

.field-input.is-error   { border-color: var(--co-error); }
.field-input.is-success { border-color: var(--co-success); }

/* Phone */
.phone-wrap {
    display: flex;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}
.phone-wrap:focus-within {
    border-color: var(--co-primary);
    box-shadow: 0 0 0 4px rgba(196,154,108,0.1);
}
.phone-code {
    background: var(--co-primary-light);
    color: var(--co-primary-dark);
    padding: 13px 14px;
    font-weight: 700;
    font-size: 14px;
    border-left: 2px solid rgba(196,154,108,0.2);
    white-space: nowrap;
    flex-shrink: 0;
}
.field-input.phone { border: none !important; box-shadow: none !important; border-radius: 0; flex: 1; }

/* Select */
.select-wrap { position: relative; }
.field-select { appearance: none; cursor: pointer; padding-left: 40px; }
.select-arrow {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--co-primary);
    pointer-events: none;
    font-size: 12px;
    transition: transform 0.3s ease;
}
.select-wrap:has(.field-select:focus) .select-arrow { transform: translateY(-50%) rotate(180deg); }

/* Textarea */
.field-textarea { resize: vertical; min-height: 130px; line-height: 1.6; }

/* Char count */
.char-count {
    text-align: left;
    font-size: 12px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Error */
.field-err {
    font-size: 12px;
    color: var(--co-error);
    display: none;
    align-items: center;
    gap: 4px;
}
.field-err.show { display: flex; }

/* Send Button */
.btn-send {
    position: relative;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--co-primary), var(--co-primary-dark));
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(196,154,108,0.4);
    margin-top: 8px;
}

.btn-send:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(196,154,108,0.55);
}

.btn-send:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.btn-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
    animation: shimmer 3s infinite;
}
@keyframes shimmer { 0%{left:-100%;} 50%,100%{left:200%;} }

/* Success Message */
.success-msg {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 22px;
    background: linear-gradient(135deg, #ecfdf5, #d1fae5);
    border: 1.5px solid #6ee7b7;
    border-radius: 14px;
    margin-top: 16px;
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.success-icon { font-size: 30px; color: var(--co-success); flex-shrink: 0; }
.success-msg strong { display: block; font-size: 15px; font-weight: 700; color: #065f46; margin-bottom: 3px; }
.success-msg p { font-size: 13px; color: #047857; margin: 0; }

/* =========================================
   CONTACT CHANNELS
========================================= */
.contact-channel {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--co-white);
    border-radius: 20px;
    padding: 22px 20px;
    margin-bottom: 16px;
    box-shadow: var(--co-shadow);
    text-decoration: none;
    border: 1.5px solid transparent;
    transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.contact-channel::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.35s ease;
    border-radius: 18px;
}

.contact-channel:hover {
    transform: translateX(-6px);
    box-shadow: var(--co-shadow-lg);
}

/* WhatsApp */
.whatsapp-channel { border-color: rgba(37,211,102,0.2); }
.whatsapp-channel:hover { border-color: var(--co-whatsapp); }
.whatsapp-channel .channel-icon { background: linear-gradient(135deg, #25D366, #128C7E); }

/* Email */
.email-channel { border-color: rgba(196,154,108,0.2); }
.email-channel:hover { border-color: var(--co-primary); }
.email-channel .channel-icon { background: linear-gradient(135deg, var(--co-primary), var(--co-primary-dark)); }

/* Phone */
.phone-channel { border-color: rgba(59,130,246,0.2); }
.phone-channel:hover { border-color: #3b82f6; }
.phone-channel .channel-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.channel-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.channel-body { flex: 1; min-width: 0; }

.channel-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-value {
    display: block;
    font-size: 17px;
    font-weight: 800;
    color: var(--co-secondary);
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-hint {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #94a3b8;
}

.channel-hint i { font-size: 11px; }

/* Online dot */
.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--co-whatsapp);
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes pulse-dot {
    0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
    50%      { box-shadow: 0 0 0 5px rgba(37,211,102,0); }
}

.channel-arrow {
    color: #cbd5e1;
    font-size: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}
.contact-channel:hover .channel-arrow { color: var(--co-primary); transform: translateX(-4px); }

/* =========================================
   FAQ CARD
========================================= */
.faq-card {
    background: var(--co-white);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: var(--co-shadow);
    border: 1.5px solid rgba(196,154,108,0.15);
    margin-top: 6px;
}

.faq-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    background: linear-gradient(135deg, var(--co-secondary), #1e293b);
}

.faq-header i   { font-size: 20px; color: var(--co-primary); }
.faq-header h4  { font-size: 16px; font-weight: 700; color: white; margin: 0; }

.faq-list { padding: 8px 0; }

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}
.faq-item:last-child { border-bottom: none; }

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 22px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: 'Cairo', sans-serif;
    transition: background 0.2s ease;
}

.faq-q:hover { background: var(--co-bg); }

.faq-q span {
    font-size: 14px;
    font-weight: 600;
    color: var(--co-secondary);
    flex: 1;
}

.faq-q i {
    color: var(--co-primary);
    font-size: 13px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-q.open i { transform: rotate(180deg); }

.faq-a {
    display: none;
    padding: 0 22px 16px;
    font-size: 13px;
    color: var(--co-text);
    line-height: 1.75;
}

.faq-a.open { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
========================================= */
@media (max-width: 991px) {
    .contact-hero { padding: 80px 0 60px; }
    .hero-title   { font-size: 36px; }
}

@media (max-width: 767px) {
    .contact-hero    { padding: 65px 0 50px; }
    .hero-title      { font-size: 28px; letter-spacing: -0.5px; }
    .hero-subtitle   { font-size: 14px; }
    .hero-badge      { font-size: 12px; padding: 8px 16px; }

    .contact-section { padding: 40px 0 60px; }

    .contact-form-card { padding: 24px 18px; border-radius: 20px; }
    .form-card-header  { gap: 12px; margin-bottom: 22px; padding-bottom: 18px; }
    .form-card-header h2 { font-size: 18px; }
    .form-card-icon  { width: 46px; height: 46px; font-size: 20px; }

    .contact-channel { padding: 18px 16px; gap: 13px; }
    .channel-icon    { width: 44px; height: 44px; font-size: 18px; border-radius: 12px; }
    .channel-value   { font-size: 15px; }

    .faq-card { margin-top: 4px; }
}

@media (min-width: 1200px) {
    .hero-title { font-size: 54px; }
}
