/* Contact Modal Styles */
.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: -100vw;
    width: 100vw;
    height: 100vh;
    z-index: 3000;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: left 0.5s cubic-bezier(.77,0,.18,1);
}
.contact-modal-overlay.active {
    left: 0;
}
.contact-modal-overlay.hidden {
    display: none;
}

/* Modal content: full viewport height and width, centered content */
.contact-modal-content.contact-modal-full {
    width: 100vw !important;
    max-width: 900px !important;
    min-width: 100vw !important;
    height: 100vh !important;
    min-height: 600px !important;
    max-height: 100vh !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    position: relative;
    background: #181818;
    z-index: 3100;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 2.5rem !important;
    overflow: hidden;
    font-size: 1.2rem;
    overflow-y: auto !important; /* Allow scrolling inside the contact modal */
}

/* Make the contact modal bigger and stretch to full viewport width/height */
.contact-modal-content.contact-modal-full {
    max-width: 100vw !important;
    width: 100vw !important;
    min-height: 600px !important;
    max-height: 98vh !important;
    height: auto;
    padding: 2.5rem 2.5rem !important;
    font-size: 1.2rem;
    border-radius: 0 !important;
    margin: 0 !important;
    left: 0;
    right: 0;
    box-sizing: border-box;
}

/* Contact form and info panel: center content */
.contact-modal-form,
.contact-modal-info {
    flex: 1 1 0;
    min-width: 0;
    max-width: 50vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    padding: 2.5rem 2rem 2rem 2rem;
    overflow-y: auto; /* If you want only the info/form panels to scroll, you can also add: */
}

/* Contact form styles */
.contact-modal-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
    max-width: 480px;
    min-width: 240px;
    background:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        #111 url('../images/contactus.jpg') center center/cover no-repeat;
    /* fallback color is #111, adjust image path as needed */
    border-right: 2px solid #ffd700;
    box-sizing: border-box;
    padding: 2.5rem 2rem 2rem 2rem;
}
.contact-modal-form h2 {
    color: #ffd700;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    font-weight: bold;
    letter-spacing: 1px;
    text-align: center;
}
.contact-modal-form label {
    color: #ffd700;
    font-size: 1.05rem;
    font-weight: 500;
    margin-bottom: 0.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
}
.contact-modal-form input,
.contact-modal-form textarea {
    background: #222;
    color: #ffd700;
    border: 1px solid #ffd700;
    border-radius: 6px;
    padding: 0.7em 1em;
    font-size: 1rem;
    margin-top: 0.2em;
    margin-bottom: 0.7em;
    transition: border 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.contact-modal-form input:focus,
.contact-modal-form textarea:focus {
    outline: none;
    border-color: #fff700;
    background: #181818;
}
.contact-modal-form button,
.contact-modal-submit {
    background: #ffd700;
    color: #181818;
    border: none;
    border-radius: 6px;
    padding: 0.8em 1.5em;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 0.5em;
    transition: background 0.2s, color 0.2s;
    box-shadow: 0 2px 8px #ffd70033;
}
.contact-modal-form button:hover,
.contact-modal-submit:hover {
    background: #181818;
    color: #ffd700;
    border: 1px solid #ffd700;
}
.contact-modal-status {
    min-height: 1.2em;
    color: #ffd700;
    font-size: 1rem;
    margin-top: 0.7em;
    text-align: center;
    width: 100%;
}

/* Contact info panel styles */
.contact-modal-info {
    background: #222;
    color: #ffd700;
    border-radius: 0;
    border-left: 2px solid #ffd700;
    text-align: center;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw; /* Allow info panel to stretch to full viewport width */
    min-width: 0;
    box-sizing: border-box;
    padding: 2.5rem 2rem 2rem 2rem;
}
.contact-modal-info h3 {
    margin-top: 0;
    color: #ffd700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-align: center;
}
.contact-modal-info p {
    color: #ffd700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    text-align: center;
}
.contact-modal-map {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px #ffd70033;
    margin-top: 0.5em;
    display: flex;
    justify-content: center;
}
.contact-modal-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
    background: #181818;
    border-radius: 8px;
}

/* Close button in upper right */
.contact-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 2.2rem;
    background: transparent;
    border: none;
    color: #ffd700;
    font-size: 3.2rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 3200;
    transition: color 0.2s;
    line-height: 1;
}

/* Text info alignment fix */
.contact-modal-textinfo {
    text-align: left !important;
    width: 150%;
    align-items: flex-start !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-left: 2rem !important; /* Add left margin */
    padding-right: 0 !important;
    margin-left: 1.5rem !important; /* Add margin from left */
}

.contact-modal-textinfo h3 {
    font-size: 2.2rem;
    font-weight: bold;
    background: linear-gradient(235deg, #000000, #000000);
    color: #ffd700;
    padding: 20px;
    clip-path: polygon(0 0, 200% 10%, 100% 100%, 0% 90%);
}
.contact-modal-textinfo strong{
    font-size: 1.8rem;
}
.contact-modal-textinfo p,
.contact-modal-textinfo strong,
.contact-modal-textinfo i {
    text-align: left !important;
    width: 100%;
    margin-left: 0 !important;
    margin-right: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

/* Ensure parent .contact-modal-info aligns left as well */
.contact-modal-info {
    text-align: left !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

