/* ============================================
   CONTACT PAGE — PREMIUM DESIGNER LAYOUT v2
   Cache-bust: 20250615-01
   ============================================ */

/* --- Section Background --- */
.contact-section {
    padding: 100px 0;
    background: #f7f8fc;
    background-image:
        radial-gradient(ellipse at 0% 0%, rgba(233, 69, 96, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(15, 52, 96, 0.04) 0%, transparent 50%);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3Cpattern id='grid' width='60' height='60' patternUnits='userSpaceOnUse'%3E%3Ccircle cx='1' cy='1' r='1' fill='%230a0f2b' fill-opacity='0.03'/%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23grid)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* ============================================
   STACKED LAYOUT — Form on top, Info below
   ============================================ */
.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 1;
}

/* ============================================
   FORM CARD — Full width
   ============================================ */
.contact-form-wrapper {
    background: #ffffff;
    padding: 56px 64px;
    border-radius: 20px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 40px rgba(0,0,0,0.06),
        0 20px 60px rgba(0,0,0,0.03);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.contact-form-wrapper:hover {
    box-shadow:
        0 1px 3px rgba(0,0,0,0.06),
        0 12px 48px rgba(0,0,0,0.09),
        0 24px 72px rgba(0,0,0,0.04);
}

/* decorative top accent */
.contact-form-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #e94560, #d63851, #e94560);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* --- Form Header --- */
.form-header {
    margin-bottom: 36px;
}

.form-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: #fdf2f4;
    color: #e94560;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.form-badge i { font-size: 11px; }

.form-header h2 {
    font-family: 'Epilogue', sans-serif;
    font-size: 34px;
    font-weight: 700;
    color: #0a0f2b;
    margin: 0 0 8px;
    line-height: 1.2;
}

.form-header p {
    font-size: 15px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* --- Form Layout --- */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.form-row.single {
    grid-template-columns: 1fr;
}

/* --- Floating Label Group --- */
.form-group.floating {
    position: relative;
}

.form-group.floating input,
.form-group.floating textarea {
    width: 100%;
    padding: 22px 24px 22px 54px;
    border: 2px solid #e8ecf1;
    border-radius: 14px;
    font-size: 17px;
    font-family: 'Epilogue', sans-serif;
    color: #0a0f2b;
    background: #f9fafb;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    line-height: 1.4;
}

.form-group.floating textarea {
    resize: vertical;
    min-height: 450px;
    padding-top: 28px;
    line-height: 1.8;
}

.form-group.floating input::placeholder,
.form-group.floating textarea::placeholder {
    color: transparent;
    user-select: none;
}

.form-group.floating input:hover,
.form-group.floating textarea:hover {
    border-color: #d1d5db;
    background: #fdfdfe;
}

.form-group.floating input:focus,
.form-group.floating textarea:focus {
    border-color: #e94560;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.06);
}

/* --- Floating Labels --- */
.form-group.floating label {
    position: absolute;
    left: 54px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 500;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group.floating.textarea-group label {
    top: 28px;
    transform: none;
}

.form-group.floating label i {
    font-size: 14px;
    color: #c4c9d0;
    transition: color 0.25s;
}

.form-group.floating label .req {
    color: #e94560;
    font-weight: 600;
}

/* float up */
.form-group.floating input:focus ~ label,
.form-group.floating input:not(:placeholder-shown) ~ label,
.form-group.floating textarea:focus ~ label,
.form-group.floating textarea:not(:placeholder-shown) ~ label {
    top: -11px;
    left: 14px;
    font-size: 12px;
    font-weight: 600;
    color: #e94560;
    background: #ffffff;
    padding: 2px 8px;
    border-radius: 4px;
}

.form-group.floating.textarea-group textarea:focus ~ label,
.form-group.floating.textarea-group textarea:not(:placeholder-shown) ~ label {
    top: -11px;
}

.form-group.floating input:focus ~ label i,
.form-group.floating textarea:focus ~ label i {
    color: #e94560;
}

/* --- Animated Focus Border --- */
.focus-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #e94560, #d63851);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 0 0 14px 14px;
}

.form-group.floating input:focus ~ .focus-border,
.form-group.floating textarea:focus ~ .focus-border {
    width: calc(100% - 4px);
    left: 2px;
}

/* --- Character Counter --- */
.char-count {
    position: absolute;
    bottom: 10px;
    right: 14px;
    font-size: 11px;
    font-weight: 500;
    color: #c4c9d0;
    pointer-events: none;
    transition: color 0.25s;
}

.char-count.near-limit { color: #f59e0b; }
.char-count.at-limit { color: #e94560; }

/* --- Error / Success States --- */
.form-group.floating input.input-error,
.form-group.floating textarea.input-error {
    border-color: #ef4444 !important;
    background: #fef2f2 !important;
}

.form-group.floating input.input-success,
.form-group.floating textarea.input-success {
    border-color: #10b981 !important;
    background: #f0fdf4 !important;
}

.field-feedback {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    min-height: 18px;
    line-height: 1.4;
}

.field-feedback.error { color: #ef4444; }
.field-feedback.success { color: #10b981; }

/* --- Submit Button --- */
.btn-submit {
    width: 100%;
    padding: 22px 32px;
    background: linear-gradient(135deg, #e94560 0%, #c23152 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Epilogue', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.btn-submit::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d63851 0%, #b52842 100%);
    opacity: 0;
    transition: opacity 0.35s;
}

.btn-submit::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
    transition: left 0.6s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(233, 69, 96, 0.35), 0 4px 12px rgba(233, 69, 96, 0.2);
}

.btn-submit:hover::before { opacity: 1; }
.btn-submit:hover::after { left: 100%; }

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(233, 69, 96, 0.25);
}

.btn-submit .btn-text,
.btn-submit .btn-icon {
    position: relative;
    z-index: 1;
}

.btn-submit .btn-icon {
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px) rotate(-20deg);
}

.btn-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
    pointer-events: none;
}

.btn-submit:disabled::before,
.btn-submit:disabled::after { display: none; }

/* --- Form Message / Toast --- */
.form-message {
    padding: 14px 20px;
    border-radius: 12px;
    margin-top: 18px;
    font-size: 14px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: slideUp 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-message.visible { display: flex; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.form-message.success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.form-message.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.form-message.info {
    background: #eff6ff;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

/* ============================================
   CONTACT INFO — Horizontal row below form
   ============================================ */
.contact-info-wrapper {
    background: #ffffff;
    padding: 40px 48px;
    border-radius: 20px;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 40px rgba(0,0,0,0.06);
    position: relative;
    overflow: hidden;
}

.contact-info-wrapper::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0f3460, #1a508b, #0f3460);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    animation-delay: 0.5s;
}

/* Info header — left side label */
.info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    background: #eef2ff;
    color: #0f3460;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.info-badge i { font-size: 10px; }

.info-header h2 {
    font-family: 'Epilogue', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0a0f2b;
    margin: 0;
    line-height: 1.2;
}

.info-header p {
    font-size: 12px;
    color: #6b7280;
    margin: 0 0 0 auto;
}

/* Contact cards in a horizontal row */
.contact-info-wrapper .contact-info-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fafbfc;
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-wrapper .contact-info-card:hover {
    background: #ffffff;
    border-color: #e8ecf1;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    transform: translateY(-2px);
}

/* Cards grid: 4-column on desktop */
.contact-info-wrapper {
    display: flex;
    flex-direction: column;
}

.contact-info-wrapper .info-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

/* left accent bar per card */
.card-accent {
    position: absolute;
    left: 0;
    top: 12px;
    bottom: 12px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    transform: scaleY(0.6);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card:nth-child(1) .card-accent { background: #6366f1; }
.contact-info-card:nth-child(2) .card-accent { background: #f59e0b; }
.contact-info-card:nth-child(3) .card-accent { background: #10b981; }
.contact-info-card:nth-child(4) .card-accent { background: #3b82f6; }

.contact-info-card:hover .card-accent { transform: scaleY(1); }

/* Contact Icons */
.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    color: #ffffff;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-info-card:hover .contact-icon { transform: scale(1.08); }

.contact-info-card:nth-child(1) .contact-icon {
    background: linear-gradient(135deg, #6366f1, #818cf8);
    box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}
.contact-info-card:nth-child(2) .contact-icon {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}
.contact-info-card:nth-child(3) .contact-icon {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}
.contact-info-card:nth-child(4) .contact-icon {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
}

/* Contact Details */
.contact-details { flex: 1; min-width: 0; }

.contact-details h3 {
    font-family: 'Epilogue', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #0a0f2b;
    margin: 0 0 3px;
    letter-spacing: 0.2px;
}

.contact-details p {
    font-size: 12px;
    color: #6b7280;
    margin: 1px 0;
    line-height: 1.5;
    word-break: break-word;
}

.contact-details a {
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.25s;
    word-break: break-word;
}

.contact-details a:hover { color: #0f3460; }
.contact-details strong { color: #374151; }
.contact-details .closed {
    color: #9ca3af;
    font-size: 11px;
    font-style: italic;
}

/* Social section — bar below cards */
.info-social-section {
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
}

.social-divider::after {
    content: '';
    width: 1px;
    height: 20px;
    background: #e8ecf1;
}

.social-divider span {
    font-family: 'Epilogue', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.social-links { display: flex; gap: 8px; flex-wrap: wrap; }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-link::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.15);
    opacity: 0;
    transition: opacity 0.3s;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.social-link:hover::after { opacity: 1; }

.social-link.fb { background: #1877f2; }
.social-link.tw { background: #0f1419; }
.social-link.li { background: #0a66c2; }
.social-link.ig { background: linear-gradient(135deg, #f58529, #dd2a7b, #8134af); }
.social-link.wa { background: #25d366; }

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
    padding: 0 0 80px;
    background: #f7f8fc;
}

.map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow:
        0 1px 3px rgba(0,0,0,0.04),
        0 8px 40px rgba(0,0,0,0.06);
    height: 400px;
    border: 4px solid #ffffff;
}

.map-container iframe {
    filter: grayscale(15%);
    transition: filter 0.5s;
}

.map-container:hover iframe { filter: grayscale(0%); }

/* ============================================
   FAQ SECTION — ACCORDION
   ============================================ */
.faq-section {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
}

.faq-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(233, 69, 96, 0.025) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(15, 52, 96, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.faq-header {
    text-align: center;
    margin-bottom: 56px;
    position: relative;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    background: #fef3c7;
    color: #b45309;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.faq-badge i { font-size: 11px; }

.faq-header h2 {
    font-family: 'Epilogue', sans-serif;
    font-size: 34px;
    font-weight: 800;
    color: #0a0f2b;
    margin: 0 0 12px;
    letter-spacing: -0.5px;
}

.faq-header p {
    font-size: 15px;
    color: #6b7280;
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.6;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.faq-item {
    background: #fafbfc;
    border-radius: 16px;
    border: 1px solid #eef0f4;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active {
    background: #ffffff;
    border-color: #dde1e8;
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.faq-item:hover:not(.active) {
    background: #fdfdfe;
    border-color: #e0e3ea;
}

.faq-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Epilogue', sans-serif;
    text-align: left;
    color: #0a0f2b;
    transition: padding 0.35s;
}

.faq-item.active .faq-toggle { padding-bottom: 12px; }

.faq-number {
    font-family: 'Epilogue', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #d1d5db;
    min-width: 36px;
    transition: color 0.35s;
}

.faq-item.active .faq-number { color: #e94560; }

.faq-question {
    flex: 1;
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    transition: color 0.35s;
}

.faq-item.active .faq-question { color: #0a0f2b; }

.faq-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #eef0f4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #6b7280;
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-icon {
    background: #e94560;
    color: #ffffff;
    transform: rotate(45deg);
}

.faq-item:hover:not(.active) .faq-icon {
    background: #dde1e8;
    color: #374151;
}

.faq-body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-body { grid-template-rows: 1fr; }

.faq-answer { overflow: hidden; }

.faq-answer p {
    padding: 0 24px 22px 76px;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.7;
    margin: 0;
}

/* --- Loading Spinner --- */
.btn-submit .fa-spinner { animation: spin 1s linear infinite; }

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 991px) {
    .contact-section { padding: 60px 0; }

    .contact-grid { gap: 28px; }

    .contact-form-wrapper {
        padding: 40px 32px;
    }

    .form-group.floating input,
    .form-group.floating textarea {
        padding: 18px 20px 18px 48px;
        font-size: 16px;
    }

    .form-group.floating textarea { min-height: 300px; }

    .form-group.floating label { left: 48px; font-size: 14px; }
    .form-group.floating label i { font-size: 13px; }

    .form-header h2 { font-size: 28px; }

    /* Info cards: 2x2 grid */
    .contact-info-wrapper { padding: 32px 28px; }
    .contact-info-wrapper .info-cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .faq-grid { grid-template-columns: 1fr; max-width: 640px; }
    .faq-header h2 { font-size: 28px; }
}

@media (max-width: 640px) {
    .contact-section { padding: 40px 0 20px; }

    .contact-grid { gap: 20px; }

    .contact-form-wrapper {
        padding: 24px 16px;
        border-radius: 16px;
    }

    .contact-form { gap: 16px; }

    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .form-group.floating input,
    .form-group.floating textarea {
        padding: 14px 16px 14px 42px;
        font-size: 14px;
        border-radius: 12px;
    }

    .form-group.floating textarea {
        min-height: 220px;
        padding-top: 20px;
    }

    .form-group.floating label { left: 42px; font-size: 13px; }
    .form-group.floating label i { font-size: 12px; }

    .form-header h2 { font-size: 22px; }
    .form-header p { font-size: 13px; }

    .btn-submit { padding: 16px 24px; font-size: 15px; }

    /* Info cards: 1 column */
    .contact-info-wrapper { padding: 24px 18px; border-radius: 16px; }
    .info-header { flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
    .info-header p { margin-left: 0; width: 100%; }
    .contact-info-wrapper .info-cards-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .info-social-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .social-divider::after { display: none; }

    .faq-section { padding: 50px 0; }
    .faq-header { margin-bottom: 32px; }
    .faq-header h2 { font-size: 24px; }
    .faq-toggle { padding: 18px 20px; gap: 12px; }
    .faq-answer p { padding: 0 20px 18px 64px; }
    .faq-number { font-size: 18px; min-width: 28px; }

    .map-section { padding: 0 0 40px; }
    .map-container { height: 280px; border-radius: 16px; }
}

@media (max-width: 400px) {
    .faq-question { font-size: 13px; }
}
