/* ==========================================================================
   IMAGE CROSSFADE & FLIP ANIMATIONS
   ========================================================================== */
.ncmf-flip-box {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #ffffff;
    border-radius: 8px;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ncmf-flip-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    backface-visibility: hidden;
    will-change: opacity, transform;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.ncmf-flip-box .img-front {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

.ncmf-flip-box .img-back {
    opacity: 0;
    transform: scale(1.03);
    z-index: 1;
}

.ncmf-flip-box.flipped .img-front {
    opacity: 0;
    transform: scale(1.03);
    z-index: 1;
}

.ncmf-flip-box.flipped .img-back {
    opacity: 1;
    transform: scale(1);
    z-index: 2;
}

/* ==========================================================================
   HOME CARDS SHORTCODE ([ncmf_home_cards]) - 2x2 GRID
   ========================================================================== */
.ncmf-home-wrapper {
    background-color: #ffffff;
    padding: 35px 25px;
    border-radius: 16px;
    margin: 0 auto;
    width: 100% !important;
    max-width: 1200px;
    box-sizing: border-box;
}

.ncmf-home-title {
    text-align: center;
    font-family: Georgia, serif;
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
}

/* Enforces 2 equal columns on desktop (Top Row: Option A, Bottom Row: Option B) */
.ncmf-home-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ncmf-home-card {
    background-color: #0c1810;
    border: 1px solid #1c2b20;
    border-radius: 12px;
    padding: 14px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.ncmf-home-card-body h3 {
    margin: 12px 0 6px 0;
    font-size: 15px;
    color: #ffffff !important;
    font-weight: 600;
}

.ncmf-home-card-body p {
    font-size: 12px;
    color: #a3b8aa;
    margin-bottom: 15px;
    line-height: 1.4;
}

.ncmf-home-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.ncmf-home-price {
    font-family: Georgia, serif;
    font-size: 18px;
    font-weight: bold;
    color: #CAFFD0;
}

.ncmf-home-btn {
    background-color: #c7f2d6;
    color: #000000;
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    font-size: 13px;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.ncmf-home-btn:hover {
    background-color: #d8fae3;
}

/* ==========================================================================
   FORM CONTAINER & LAYOUT
   ========================================================================== */
.ncmf-wrapper {
    background-color: #050b07;
    color: #ffffff;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    padding: 5%;
    margin: 0 auto;
    border: 1px solid #1a3323;
    width: 100%;
    box-sizing: border-box;
}

.ncmf-header {
    border: 1px solid #1c2b20;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
}

.ncmf-header h2 {
    font-family: Georgia, serif;
    font-size: 32px;
    margin: 0 0 5px 0;
    color: #ffffff;
}

.ncmf-header p {
    font-style: italic;
    font-size: 13px;
    color: #9eb8a7;
    margin: 0;
}

.ncmf-banner {
    border: 1px solid #1c2b20;
    border-radius: 12px;
    margin-bottom: 25px;
}

.ncmf-form {
    border: 1px solid #1c2b20;
    border-radius: 12px;
    padding: 25px;
    box-sizing: border-box;
}

/* Standard Fields (Name, Phone, Email) */
.ncmf-field {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
}

.ncmf-field label {
    width: 130px;
    font-size: 13px;
    color: #ffffff;
    flex-shrink: 0;
}

.ncmf-field input {
    flex: 1;
    width: 100%;
    background-color: transparent !important;
    border: 1px solid #CAFFD0 !important;
    border-radius: 6px;
    padding: 10px 14px;
    color: #ffffff !important;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

.ncmf-field input:focus {
    background-color: #ffffff !important;
    color: #000000 !important;
}

/* Size Selection Section */
.ncmf-section-title {
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    margin: 25px 0 12px 0;
}

.ncmf-size-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    margin-bottom: 10px;
}

.ncmf-size-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.ncmf-size-label {
    background-color: #c7f2d6;
    color: #000000;
    font-weight: bold;
    font-size: 12px;
    padding: 6px 0;
    width: 45px;
    text-align: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.ncmf-qty-picker {
    display: flex;
    align-items: center;
    gap: 4px;
}

.qty-btn {
    background: transparent;
    border: 1px solid #1c2b20;
    color: #ffffff;
    width: 24px;
    height: 28px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.qty-btn:hover {
    background-color: #112116;
}

/* ==========================================================================
   QUANTITY INPUTS (PADDED & CENTERED FIX)
   ========================================================================== */
.ncmf-wrapper input.qty-input,
.ncmf-wrapper .ncmf-qty-picker input[type="number"].qty-input,
.ncmf-wrapper .qty-input {
    width: 36px !important;
    height: 28px !important;
    padding: 0 !important;
    margin: 0 !important;
    background-color: transparent !important;
    border: 1px solid #CAFFD0 !important;
    border-radius: 4px !important;
    color: #CAFFD0 !important;
    -webkit-text-fill-color: #CAFFD0 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 28px !important;
    text-align: center !important;
    outline: none !important;
    box-shadow: none !important;
    display: inline-block !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    -moz-appearance: textfield !important;
}

.ncmf-wrapper input.qty-input:focus,
.ncmf-wrapper input.qty-input:active {
    background-color: transparent !important;
    color: #CAFFD0 !important;
    -webkit-text-fill-color: #CAFFD0 !important;
    border-color: #CAFFD0 !important;
    padding: 0 !important;
}

/* Hide WebKit & Firefox native spinner arrows */
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button,
.main-qty-input::-webkit-outer-spin-button,
.main-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* ==========================================================================
   TOTAL DISPLAY & FOOTER
   ========================================================================== */
.ncmf-total-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 35px;
    gap: 15px;
}

.ncmf-total-qty label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 8px;
}

.ncmf-wrapper input.main-qty-input,
.main-qty-input {
    width: 80px !important;
    height: 32px !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 1px solid #1c2b20 !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    font-size: 14px !important;
    font-weight: bold !important;
    line-height: 32px !important;
    text-align: center !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.ncmf-total-price {
    font-family: Georgia, serif;
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    text-align: right;
}

.ncmf-subtext {
    font-size: 11px;
    color: #8fa896;
    letter-spacing: 0.5px;
    margin-top: 25px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.ncmf-submit-btn {
    width: 100%;
    background-color: #c7f2d6;
    color: #000000;
    border: none;
    padding: 12px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
}

.ncmf-submit-btn:hover {
    background-color: #d8fae3;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE BREAKPOINTS)
   ========================================================================== */
@media screen and (max-width: 600px) {
    .ncmf-home-grid {
        grid-template-columns: 1fr; /* Stacks to single-column layout on mobile */
        gap: 16px;
    }

    .ncmf-wrapper {
        padding: 15px 10px;
    }

    .ncmf-form {
        padding: 15px 12px;
    }

    .ncmf-header h2 {
        font-size: 24px;
    }

    /* Stack labels above text inputs on mobile */
    .ncmf-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .ncmf-field label {
        width: 100%;
    }

    /* Adjust size selector grid to fit small mobile screens cleanly */
    .ncmf-size-grid {
        grid-template-columns: repeat(auto-fill, minmax(115px, 1fr));
        gap: 8px;
    }

    .ncmf-size-item {
        padding: 4px;
    }

    .ncmf-size-label {
        width: 35px;
        font-size: 11px;
    }

    /* Keep total display cleanly split or wrapped */
    .ncmf-total-row {
        flex-direction: row;
        align-items: center;
    }

    .ncmf-total-price {
        font-size: 22px;
    }

    .ncmf-home-wrapper {
        padding: 20px 15px;
    }

    .ncmf-home-title {
        font-size: 22px;
    }
}