/*
====================
    CONTACT HERO
====================
*/
.contact-hero {
    max-width: 900px;
    margin: 80px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.contact-hero h1 {
    font-size: 2.4rem;
    color: #6B4F3B;
    margin-bottom: 14px;
    font-weight: 700;
}

.contact-hero p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #5A4636;
}

/*
=======================
    CONTACT DETAILS
=======================
*/
.contact-details {
    text-align: right;
    margin-top: 5px;
    color: #5A4636;
    flex-basis: 100%;
}

.contact-details p {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.4;
}

.contact-details .icon {
    font-size: 1.4rem;
    vertical-align: middle;
    margin-left: 6px;
}

/*
===================
    MAP SECTION
===================
*/
.contact-wrapper {
    max-width: 1200px;
    margin: 60px auto 80px;
    padding: 0 20px;
    display: flex;
    gap: 40px;
}

.contact-map {
    flex: 1.6;
}

.map-wrapper {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

/*
====================
    LOCATION PIN
====================
*/
.map-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -100%);
    pointer-events: none;
    animation: cafePinFloat 2.4s ease-in-out infinite;
}

.map-pin svg {
    width: 54px;
    height: 54px;
    filter: drop-shadow(0 6px 10px rgba(0,0,0,0.25));
}

/*
====================
    CONTACT FORM
====================
*/
.contact-form-section {
    position: relative;
    overflow: hidden;
    max-width: 720px;
    margin: 0 auto 80px;
    padding: 40px 30px;
    background: #F3E9DE;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    flex: 1;
}

.coffee-beans-watermark {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px; 
    pointer-events: none;
    z-index: 0;
}

.coffee-beans-watermark img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.15;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    padding: 14px 16px;
    margin-bottom: 18px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #D7C6B4;
    background: #FFF;
    color: #5A4636;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #9C8A78;
}

.contact-form textarea {
    resize: vertical;
}

.contact-form button {
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    background: #C49C6C;
    color: white;
    cursor: not-allowed;
    opacity: 0.85;
}

.contact-form button:hover {
    opacity: 0.85;
}

.demo-note {
    margin-top: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #6B4F3B;
    font-style: italic;
}

/*
=================
    ANIMATION
=================
*/
@keyframes cafePinFloat {
    0% { transform: translate(-50%, -100%); }
    50% { transform: translate(-50%, -118%); }
    100% { transform: translate(-50%, -100%); }
}


/*
======================================
    RESPONSIVE CODE (SMALL MOBILE)
======================================
*/
@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.6rem;
    }

    .contact-hero p {
        font-size: 0.9rem;
    }

    .map-wrapper {
        height: 260px;
    }

    .contact-details p {
        font-size: 0.9rem;
    }

    .map-pin {
        display: none;
    }

    .contact-form-section {
        padding: 25px 16px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.9rem;
    }

    .coffee-beans-watermark {
        display: none;
    }
}

/*
================================
    RESPONSIVE CODE (MOBILE)
================================
*/
@media (max-width: 767px) {
    .contact-hero {
        margin: 60px auto 30px;
    }

    .contact-hero h1 {
        font-size: 1.9rem;
    }

    .contact-hero p {
        font-size: 1rem;
    }

    .contact-wrapper {
        flex-direction: column;
        gap: 25px;
        margin: 40px auto 60px;
    }

    .map-wrapper {
        height: 320px;
        border-radius: 10px;
    }

    .contact-details {
        text-align: center;
    }

    .contact-details p {
        font-size: 1rem;
    }

    .map-pin svg {
        width: 42px;
        height: 42px;
    }

    .contact-form-section {
        padding: 30px 20px;
        border-radius: 10px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 0.95rem;
        padding: 12px 14px;
    }

    .contact-form textarea {
        min-height: 140px;
    }

    .contact-form button {
        font-size: 0.95rem;
        padding: 12px;
    }

    .coffee-beans-watermark {
        width: 250px;
        height: 250px;
        opacity: 0.1;
    }
}

/*
================================
    RESPONSIVE CODE (TABLET)
================================
*/
@media (max-width: 1199px) {
    .contact-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .contact-map {
        width: 100%;
    }

    .map-wrapper {
        height: 420px;
    }

    .contact-details {
        text-align: center;
        margin-bottom: 15px;
    }

    .contact-details p {
        font-size: 1.05rem;
    }

    .contact-form-section {
        max-width: 100%;
        padding: 35px 25px;
    }

    .coffee-beans-watermark {
        width: 350px;
        height: 350px;
        opacity: 0.12;
    }
}