/* ==========================================================================
   GLOBAL RESET & CONTAINER LAYOUT
   ========================================================================== */
.ncmf-mc-wrapper,
.ncmf-mc-wrapper * {
    box-sizing: border-box !important;
}

.ncmf-mc-wrapper {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    font-family: 'Helvetica Neue', Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.ncmf-mc-title {
    text-align: center;
    font-family: Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 25px;
}

/* ==========================================================================
   TWO-COLUMN GRID LAYOUT
   ========================================================================== */
.ncmf-mc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch; /* Prevents columns from forcibly stretching each other */
}

/* ==========================================================================
   LEFT COLUMN: SLIDESHOW CONTAINER (RESPONSIVE IMAGE FIX)
   ========================================================================== */
.ncmf-mc-slideshow-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    width: 100%;
    background-color: #033a1e; /* Matches poster green background */
}

.ncmf-mc-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

/* First/Active slide defines the container layout height via static positioning */
.ncmf-mc-slide.active {
    position: relative; /* Drives container height naturally */
    opacity: 1;
    z-index: 2;
}

.ncmf-mc-slide img {
    width: 100%;
    height: auto; /* Preserves natural image ratio without cropping */
    display: block;
    border-radius: 20px;
}

/* ==========================================================================
   RIGHT COLUMN: FORM BOX & SPACING
   ========================================================================== */
.ncmf-mc-form-box {
    background-color: #ffffff;
    border-radius: 20px;
    padding: 24px 28px; /* Slightly reduced vertical padding for better compact fit */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

.ncmf-mc-form-title {
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
    line-height: 1.15;
}

/* Meta Info Formatting */
.ncmf-mc-meta-grid {
    display: block;
    gap: 55px;
    margin-bottom: 12px;
}

.ncmf-mc-meta-item,
.ncmf-mc-location-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #333333;
    margin-bottom: 10px;
}

.ncmf-mc-location-item {
    margin-bottom: 16px;
}

.ncmf-mc-meta-label {
    display: block;
    color: #666666;
    font-size: 11px;
}

.ncmf-mc-icon {
    width: 24px;
    height: 24px;
    color: #8fa896;
    flex-shrink: 0;
}

/* Form Controls */
.ncmf-mc-group {
    margin-bottom: 14px; /* Reduced spacing between fields */
}

.ncmf-mc-group label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    color: #000000;
    margin-bottom: 4px;
}

/* Updated selector to include tel and select elements */
.ncmf-mc-group input[type="text"],
.ncmf-mc-group input[type="email"],
.ncmf-mc-group input[type="tel"],
.ncmf-mc-group select {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
    background-color: #ffffff !important;
    color: #000000 !important;
    transition: border-color 0.2s ease;
    height: 42px; /* Standardizes height across inputs and select dropdowns */
}

.ncmf-mc-group select {
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.ncmf-mc-group input:focus,
.ncmf-mc-group select:focus {
    border-color: #8bc34a;
}

/* Submit Button */
.ncmf-mc-btn {
    width: 100%;
    background-color: #c7f7d4;
    color: #000000;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 6px;
}

.ncmf-mc-btn:hover {
    background-color: #b2f0c1;
}



/* ==========================================================================
   SUCCESS MODAL POPUP
   ========================================================================== */
.ncmf-mc-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.ncmf-mc-modal-overlay.active {
    display: flex;
}

.ncmf-mc-modal-content {
    background: #ffffff;
    padding: 36px 28px;
    border-radius: 20px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    animation: mcModalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes mcModalPop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.ncmf-mc-modal-icon {
    width: 56px;
    height: 56px;
    background-color: #c7f7d4;
    color: #1b5e20;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 16px auto;
}

.ncmf-mc-modal-content h2 {
    font-family: Georgia, serif;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 10px 0;
}

.ncmf-mc-modal-content p {
    font-size: 13px;
    color: #555555;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media screen and (max-width: 650px) {
    .ncmf-mc-grid {
        grid-template-columns: 1fr;
    }

    .ncmf-mc-meta-grid {
        gap: 25px;
    }

    .ncmf-mc-form-box {
        padding: 24px 20px;
    }
}