﻿/* =========================================
   STYLECONTACT.CSS - ARTISAN VISUAL PREMIUM
   ========================================= */

/* --- 1. GLOBAL & TYPOGRAPHY --- */
:root {
    --gold: #c2a45d;
    --dark-bg: #0c0c0c;
    --card-bg: rgba(255, 255, 255, 0.02);
    --border: rgba(255, 255, 255, 0.08);
}

body {
    background-color: var(--dark-bg);
    font-family: 'Montserrat', sans-serif !important;
    color: #f5f5f5;
    margin: 0;
    overflow-x: hidden;
}

/* Memastikan semua elemen borang menggunakan Montserrat */
input, select, textarea, button, label, .fc, .modal-card {
    font-family: 'Montserrat', sans-serif !important;
}

/* --- 2. HERO SECTION --- */
.contact-hero {
    height: 45vh;
    background: url('../images/camera.jpg') center no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), var(--dark-bg));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin: 0;
    color: #fff;
}

.gold-line {
    width: 50px;
    height: 3px;
    background: var(--gold);
    margin: 15px auto;
}

.hero-desc {
    color: #ccc;
    font-size: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

/* --- 3. MAIN LAYOUT GRID --- */
.contact-main-section {
    padding: 20px 20px;
    background: var(--dark-bg);
}

.container-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 400px 1fr; /* Lajur kiri maklumat, lajur kanan borang */
    gap: 80px;
    align-items: start;
}

/* --- 4. LEFT SIDE: INFO AREA --- */
.tag {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.75rem;
}

.info-area h2 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #fff;
    margin: 10px 0 20px;
}

.info-area p {
    color: #888;
    line-height: 1.8;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

    .detail-item i {
        color: var(--gold);
        font-size: 1.2rem;
    }

    .detail-item p {
        margin: 0;
        color: #ddd;
        font-weight: 400;
    }

/* Google Maps Styling */
.map-container {
    margin: 10px 0 30px 0;
    border: 1px solid rgba(194, 164, 93, 0.3);
    border-radius: 18px;
    overflow: hidden;
    filter: grayscale(1) invert(0.9) contrast(1.2);
    transition: 0.5s ease;
    height: 250px;
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

    .map-container:hover {
        filter: grayscale(0) invert(0) contrast(1);
        border-color: var(--gold);
    }

/* Social Icons */
.social-connect {
    margin-top: 50px;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding-top: 30px;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 15px;
}

    .social-icons a {
        width: 45px;
        height: 45px;
        border: 1px solid #333;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        transition: 0.3s;
        text-decoration: none;
    }

        .social-icons a:hover {
            background: var(--gold);
            border-color: var(--gold);
            transform: translateY(-5px);
        }

    .social-icons p {
        margin: 0;
        color: #555;
        font-size: 0.8rem;
        letter-spacing: 1px;
    }

/* --- 5. RIGHT SIDE: FORMS AREA --- */
.form-block {
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 40px;
    border-radius: 25px;
    margin-bottom: 40px;
}

.block-header {
    margin-bottom: 30px;
}

    .block-header h3 {
        font-family: 'Playfair Display', serif;
        color: var(--gold);
        font-size: 1.5rem;
        margin: 0;
    }

    .block-header p {
        font-size: 0.85rem;
        color: #666;
        margin-top: 5px;
    }

.calendar-ui {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    color: #333;
}

/* --- 6. FORM ELEMENTS (MONTSERRAT) --- */
.input-box {
    margin-bottom: 22px;
    width: 100%;
    box-sizing: border-box;
}

    .input-box label {
        display: block;
        font-size: 0.75rem;
        font-weight: 700;
        color: #777;
        text-transform: uppercase;
        margin-bottom: 10px;
        letter-spacing: 1px;
    }

input, select, textarea {
    width: 100% !important;
    padding: 14px 16px !important;
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    border-radius: 12px !important;
    color: #fff !important;
    font-size: 0.9rem !important;
    box-sizing: border-box !important;
    transition: 0.3s;
}

    input:focus, select:focus, textarea:focus {
        border-color: var(--gold) !important;
        outline: none;
        background: #222 !important;
    }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-prime {
    width: 100%;
    padding: 18px;
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

    .btn-prime:hover {
        background: #b09350;
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(194, 164, 93, 0.3);
    }

/* --- 7. MODAL OVERLAY (POPUP FIX) --- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 20px;
}

    .modal-overlay.show {
        display: flex;
    }

.modal-card {
    width: 100%;
    max-width: 550px;
    background: #121212;
    border: 1px solid var(--gold);
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: modalPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* KOD BAHARU: Hadkan tinggi kad sekitar 80% daripada tinggi skrin peranti */
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    background: rgba(194, 164, 93, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(194, 164, 93, 0.2);
    flex-shrink: 0; /* Memastikan header tidak mengecil apabila borang diskrol */
}

    .modal-header h3 {
        margin: 0;
        color: var(--gold);
        font-size: 1.1rem;
    }

.close-modal {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 35px;
    box-sizing: border-box;
    /* KOD BAHARU: Mengaktifkan bar skrol dalaman jika kandungan borang terlalu panjang */
    overflow-y: auto;
    flex: 1;
}

    /* KOSMETIK: Kemaskan rupa bar skrol dalaman modal (gaya minimalis) */
    .modal-body::-webkit-scrollbar {
        width: 6px;
    }

    .modal-body::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.01);
    }

    .modal-body::-webkit-scrollbar-thumb {
        background: rgba(194, 164, 93, 0.3);
        border-radius: 10px;
    }

        .modal-body::-webkit-scrollbar-thumb:hover {
            background: var(--gold);
        }

/* --- 8. STATUS ALERT --- */
.status-alert {
    display: block;
    padding: 15px;
    margin-bottom: 30px;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s;
}

/* --- 9. KEYFRAMES & GLOBAL EXTRA --- */
@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

span[id*="rfv"], span[id*="rev"], .val-error {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-top: 5px;
    display: block;
    letter-spacing: 0px;
}

.fc-event {
    white-space: normal !important;
    align-items: flex-start !important;
    padding: 2px 5px !important;
    overflow: hidden !important;
}

.fc-event-title {
    display: inline-block;
    vertical-align: top;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.85em !important;
}

.fc-daygrid-event {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2px;
}

.fc-daygrid-day-events {
    padding: 2px !important;
}


/* ==================================================================
   10. MOBILE OPTIMIZATION (HANYA BERJALAN PADA VERSION MOBILE SAHAJA)
   ================================================================== */

@media (max-width: 1024px) {
    .container-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .info-area {
        text-align: center;
    }

    .detail-item, .social-icons {
        justify-content: center;
    }
}

/* Pembaikan Khusus Telefon Pintar (UX Kalendar Jelas & Form Penuh) */
@media (max-width: 768px) {
    /* PERISAI NAVBAR: Mengelakkan tajuk "Get In Touch" bertindih dengan menu fixed mobile */
    .contact-hero {
        align-items: flex-start !important;
        padding-top: 140px !important;
        height: auto !important;
    }

    /* KELUASAN PENUH: Memastikan kotak kalendar mengambil ruang skrin maksimum di phone */
    .form-block {
        padding: 25px 15px !important;
        border-radius: 20px;
    }

    /* Optimumkan padding dalam kalendar supaya nampak penuh, padat dan sangat jelas */
    .calendar-ui {
        padding: 12px 8px !important;
        border-radius: 14px;
    }

    /* Kecilkan toolbar tajuk FullCalendar di mobile supaya butang dan teks muat satu skrin */
    .fc .fc-toolbar-title {
        font-size: 1.05rem !important;
    }

    .fc .fc-toolbar {
        flex-direction: column !important;
        gap: 10px;
    }

    /* Form popup modal diselaraskan luas dan penuh mengikut skrin telefon */
    .modal-card {
        max-width: 100% !important;
        margin: 10px;
        border-radius: 20px;
    }

    .modal-body {
        padding: 25px 20px !important;
    }

    /* Naikkan kejelasan tulisan error validator di skrin phone */
    span[id*="rfv"], span[id*="rev"], .val-error {
        font-size: 0.75rem !important;
        color: #ff4d4d !important;
    }
}

@media (max-width: 600px) {
    /* PAKSA FORM GRID BERTUKAR KEPADA 1 LAJUR (Penuh & Tegak) */
    .form-grid {
        grid-template-columns: 1fr !important;
        gap: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }
}
