/* Wedding Invitation Form Manager - Main Styles */

.wifm-form-container {
    max-width: 800px;
    margin: 30px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Reset select borders globally within form - but not for mi-text-control */
.wifm-form-container select:not(.mi-text-control),
.wifm-form select:not(.mi-text-control) {
    border: none !important;
    box-sizing: border-box;
}

/* Form Steps */
.col-md-12.form {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
}

/* .form-table.mi-table {
    padding: 30px;
} */

/* Video Preview Step */
.video-preview-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.video-thumbnail-wrapper {
    width: 100%;
    max-width: 250px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    background: #f5f5f5;
}

body.page-id-4803 .contact_banner .banner_title{
    font-size: 30px;
}
body.page-id-4803 .wifm-form-container{
    margin-top: 0;
    padding-top: 0;
}

.video-preview-image {
    width: 100%;
    height: auto;
    display: block;
}

.video-change-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: #ff7396;
    color: white !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(255, 115, 150, 0.25);
}

.video-change-btn:hover {
    background: #ff5a82;
    box-shadow: 0 4px 10px rgba(255, 115, 150, 0.35);
    transform: translateY(-1px);
    color: white;
}

.video-change-btn i {
    font-size: 16px;
}

/* Mobile Responsive for Video Preview */
@media (max-width: 768px) {
    .video-thumbnail-wrapper {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .video-preview-container {
        gap: 12px;
    }
    
    .video-thumbnail-wrapper {
        border-radius: 6px;
    }
    
    .video-change-btn {
        padding: 9px 20px;
        font-size: 13px;
    }
    
    .video-change-btn i {
        font-size: 14px;
    }
}

/* Simple Language Selector */
.wifm-language-selector {
    margin-bottom: 20px;
}

.wifm-language-selector .filed-label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Let mi-text-control handle all select styling */

.wifm-language-selector select option {
    padding: 10px;
    font-weight: 500;
}

.wifm-language-selector .required-title {
    color: white;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    opacity: 0.9;
}

/* Bride Side or Groom Side Selector */
.bride-side-or-groom-side-selection {
    margin-bottom: 20px;
}

.bride-side-or-groom-side-selection .filed-label {
    color: #333;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

/* Let mi-text-control handle all select styling */

.bride-side-or-groom-side-selection select option {
    padding: 10px;
    font-weight: 500;
}

.bride-side-or-groom-side-selection .required-title {
    color: white;
    font-size: 12px;
    margin-top: 8px;
    display: block;
    opacity: 0.9;
}

/* Field Wrappers */
.field-wrapper {
    margin-bottom: 25px;
}

.filed-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.filed-label.label-center {
    text-align: center;
}


.prvBtnahref{
    cursor: pointer;
    border-radius: 200px;
    background: #FF7396;
    color: #FFF;
    text-align: center;
    font-size: 18px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 45px;
    display: inline-block;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 10px;
    margin: 5px 5px;
font-size: 14px;
        padding: 12px 20px;

    
}

/* Form Controls */
.mi-text-control,
.mi-textarea-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    color: #333;
    font-family: inherit;
    box-sizing: border-box;
    min-height: 48px;
    outline: none;
}

input.mi-text-control {
    height: 48px;
}

/* Ensure select elements with mi-text-control don't get double borders */
select.mi-text-control {
    border: 2px solid #e2e8f0 !important;
    border-radius: 8px !important;
    outline: none;
    min-height: 48px;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 45px;
    cursor: pointer;
}

/* Ensure HTML5 date input used for wedding date doesn't overflow on small screens / iOS.
   Keep same box-sizing and prevent the native picker UI from being wider than container. */
input.textfield-wedding-date.mi-text-control,
input[type="date"].mi-text-control {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: 16px; /* avoid large right padding used for select arrows */
}

/* iOS/iPhone specific fixes */
select.mi-text-control::-webkit-inner-spin-button,
select.mi-text-control::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

select.mi-text-control::-ms-expand {
    display: none;
}

/* Better touch targets for mobile */
@media (max-width: 768px) {
    select.mi-text-control {
        min-height: 48px;
        font-size: 16px;
        padding: 14px 45px 14px 16px;
    }
    .prvBtnahref{
        width: 100%;
        display: block;
    }
}

.mi-text-control:focus,
.mi-textarea-control:focus {
    outline: none;
    border-color: #ff7396;
    box-shadow: 0 0 0 3px rgba(255, 115, 150, 0.1);
}

/* Select-specific focus override */
select.mi-text-control:focus {
    /* border-color: #ff7396 !important; */
    box-shadow: 0 0 0 3px rgba(255, 115, 150, 0.1);
}

/* Select option styling for better iOS appearance */
select.mi-text-control option {
    padding: 12px;
    font-size: 16px;
    background: #ffffff;
    color: #333;
}

.mi-textarea-control {
    resize: vertical;
    min-height: 100px;
}

/* Counter Values */
.counter-value {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    color: #666;
}

/* Required/Optional Labels */
.required-title {
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
}

.optional-title {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

/* Event Styles */
.event-block {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    background: #ffffff;
}

/* Event Header Styles */
.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #ff7396;
}

.event-header h4 {
    margin: 0;
    color: #ff7396;
    font-weight: 600;
    font-size: 18px;
}

.delete-event-block {
    background: #ff4757 !important;
    color: white !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
}

.delete-event-block:hover {
    background: #ff3742 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(255, 71, 87, 0.3) !important;
}

.delete-event-block svg {
    flex-shrink: 0;
}

/* Buttons */
.addFullEventBlock {
    background: #ff7396;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.addFullEventBlocktrash:hover {
    background: #ff5a7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 115, 150, 0.3);
}

.prvBtn,
.nxtBtn {
    background: #ff7396;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.prvBtn:hover,
.nxtBtn:hover {
    background: #ff5a7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 115, 150, 0.3);
}

.button_list {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

/* Delete functionality */
.delete-field {
    background: #ff4757;
    color: white;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.delete-field:hover {
    background: #ff3742;
    transform: scale(1.1);
}

.delete-tab {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Loading spinner */
.place-order-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}

.place-order-loader i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Message Styles */
.wifm-message {
    padding: 15px;
    margin: 20px 0;
    border-radius: 8px;
    font-weight: 500;
    animation: slideIn 0.3s ease;
}

.wifm-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.wifm-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form steps visibility */
.form[style*="display: none"] {
    display: none !important;
}

.form:not([style*="display: none"]) {
    display: block !important;
}










/* Responsive Design */
@media (max-width: 768px) {
    .wifm-form-container {
        margin: 15px;
        padding: 20px;
    }
    
    /* .form-table.mi-table {
        padding: 20px;
    } */
    
    .button_list {
        flex-direction: column;
        gap: 15px;
    }
    
    .prvBtn,
    .nxtBtn {
        width: 100%;
        justify-content: center;
    }
    
    .event-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .delete-event-block {
        width: 100%;
        justify-content: center;
    }
}

/* Focus styles for accessibility */
.mi-text-control:focus,
.mi-textarea-control:focus,
.prvBtn:focus,
.nxtBtn:focus:focus {
    outline: 2px solid #ff7396;
    outline-offset: 2px;
}

/* Disabled button styles */
.prvBtn.disabled,
.prvBtn:disabled {
    background: #ccc !important;
    color: #666 !important;
    cursor: not-allowed !important;
    opacity: 0.6;
}

.prvBtn.disabled:hover,
.prvBtn:disabled:hover {
    background: #ccc !important;
    color: #666 !important;
    transform: none !important;
}

/* Form overlay loader */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff7396;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Mobile */
@media (max-width: 768px) {
    .wifm-form-container {
        padding: 15px;
        margin: 10px;
    }
    
    .mi-text-control,
    .mi-textarea-control {
        font-size: 16px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .wifm-form-container {
        padding: 10px;
        margin: 5px;
    }
    
    .button_list {
        flex-direction: column-reverse;
    }
    
    .prvBtn,
    .nxtBtn {
        width: 100%;
        margin: 5px 0;
    }
     .prvBtnahref{
        padding: 10px 20px;
     }
}

/* Print styles */
@media print {
    .button_list,
    #new-field-panel,
    .delete-tab,
    .delete-event-block {
        display: none;
    }
    
    .wifm-form-container {
        box-shadow: none;
    }
    
    .col-md-12.form {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .event-header {
        background: white;
        border: 1px solid #ddd;
    }
}

/* ============================================
   SUCCESS MODAL STYLES
   ============================================ */

/* Modal Overlay */
.wifm-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    will-change: opacity, visibility;
    /* iOS Safari fixes */
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.wifm-modal.wifm-modal-visible {
    opacity: 1;
    visibility: visible;
}

.wifm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Modal Content */
.wifm-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 600px;
    width: 90%;
    height: 80vh;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: wifmModalSlideIn 0.3s ease-out;
    z-index: 100000;
    will-change: transform, opacity;
    /* iOS Safari fixes */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

@keyframes wifmModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Scrollable Content Wrapper */
.wifm-modal-scroll-wrapper {
    overflow-y: auto;
    flex: 1;
    max-height: calc(80vh - 180px);
    min-height: 0;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

/* Modal Header - Success Message & ID */
.wifm-modal-header {
    padding: 30px 30px 20px 30px;
    text-align: center;
    background: white;
    border-bottom: 2px solid #f0f0f0;
}

/* Modal Body - Package Details */
.wifm-modal-body {
    padding: 25px 30px 30px 30px;
}

/* Fixed Modal Footer - WhatsApp Button */
.wifm-modal-footer {
    padding: 20px 30px 30px 30px;
    text-align: center;
    background: white;
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
}

/* Close Button */
.wifm-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1;
}

.wifm-modal-close:hover {
    background: #f5f5f5;
    color: #333;
    transform: rotate(90deg);
}

/* Success Icon */
.wifm-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
}

.wifm-success-icon svg {
    width: 100%;
    height: 100%;
}

.wifm-success-circle {
    stroke: #ff7396;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
}

/* Only animate in step 1 */
#wifm-modal-step-1 .wifm-success-circle {
    animation: wifmCircleStroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.wifm-success-check {
    stroke: #ff7396;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

/* Only animate in step 1 */
#wifm-modal-step-1 .wifm-success-check {
    animation: wifmCheckStroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

/* Step 2 - Show checkmark immediately without animation */
#wifm-modal-step-2 .wifm-success-circle {
    stroke-dashoffset: 0;
}

#wifm-modal-step-2 .wifm-success-check {
    stroke-dashoffset: 0;
}

@keyframes wifmCircleStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes wifmCheckStroke {
    100% {
        stroke-dashoffset: 0;
    }
}

/* Modal Title */
.wifm-modal-title {
    font-size: 26px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    line-height: 1.3;
}

/* Submission ID Section */
.wifm-submission-id {
    background: linear-gradient(135deg, #fff0f4 0%, #ffe8ee 100%);
    border: 2px solid #ff7396;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0 25px;
}

.wifm-id-label {
    font-size: 14px;
    color: #666;
    margin: 0 0 8px;
    font-weight: 500;
}

.wifm-id-value {
    font-size: 32px;
    font-weight: 800;
    color: #ff7396;
    margin: 0;
    letter-spacing: 1px;
    font-family: "Courier New", Courier, monospace;
}

/* Modal Description */
.wifm-modal-description {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
    margin: 0 0 30px;
}

/* WhatsApp Button */
.wifm-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #25D366 !important;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 36px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-decoration: none;
}

.wifm-whatsapp-btn:hover {
    background: #128C7E !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.wifm-whatsapp-btn:active {
    transform: translateY(0);
}

.wifm-whatsapp-btn svg {
    flex-shrink: 0;
}

/* ============================================
   PACKAGE DETAILS IN MODAL
   ============================================ */

/* Packages Section */
.wifm-packages-section {
    background: #fafafa;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e0e0e0;
}

.wifm-packages-title {
    font-size: 19px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
    text-align: center;
    border-bottom: 3px solid #e91e63;
    display: inline-block;
    padding-bottom: 5px;
    width: 100%;
}

.wifm-select-package-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0 0 14px 0;
    font-weight: 500;
}

.wifm-package-item {
    background: #fff;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.1);
    border-color: #e91e63;
    position: relative;
}

.wifm-package-item:last-of-type {
    margin-bottom: 0;
}

/* Selectable Package Styles */
.wifm-package-selectable {
    cursor: pointer;
    border: 2px solid #ddd;
}

.wifm-package-selectable:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

.wifm-package-selectable.wifm-package-selected {
    border-color: #e91e63;
    background: #fff5f8;
    box-shadow: 0 4px 16px rgba(233, 30, 99, 0.3);
}

.wifm-package-selectable.wifm-package-premium.wifm-package-selected {
    border-color: #198754;
    background: #f6fff4;
    box-shadow: 0 4px 16px rgba(25, 135, 84, 0.3);
}

/* Selected Badge */
.wifm-package-selected-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    background: #e91e63;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(233, 30, 99, 0.4);
}

.wifm-package-premium .wifm-package-selected-badge {
    background: #198754;
}

.wifm-package-selected .wifm-package-selected-badge {
    display: flex;
}

.wifm-package-item.wifm-package-premium {
    /* background: linear-gradient(135deg, #f6fff4 0%, #fff 100%); */
    /* border-color: #198754; */
    box-shadow: 0 2px 8px rgba(25, 135, 84, 0.1);
}

.wifm-package-item.wifm-package-premium:hover {
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.2);
}

.wifm-package-content {
    text-align: left;
}

.wifm-package-name {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 8px 0;
}

.wifm-package-price {
    font-size: 20px;
    font-weight: 700;
    color: #e91e63;
    margin: 0 0 12px 0;
}

.wifm-package-item.wifm-package-premium .wifm-package-price {
    color: #198754;
}

.wifm-package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #555;
    line-height: 1.7;
}

.wifm-package-features li {
    margin-bottom: 6px;
    padding-left: 20px;
    position: relative;
}

.wifm-package-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #198754;
    font-weight: bold;
    font-size: 14px;
}

.wifm-package-note {
    font-size: 12px;
    color: #999;
    margin: 8px 0 0 0;
    font-style: italic;
}

.wifm-language-note {
    font-size: 12px;
    color: #666;
    background: #fff3cd;
    padding: 8px 10px;
    border-radius: 6px;
    margin-top: 8px;
    margin-bottom: 0;
    text-align: center;
    line-height: 1.4;
}

/* Modal Steps */
.wifm-modal-step {
    display: none;
    flex-direction: column;
    height: 100%;
    min-height: 0;
}

/* Summary Section Styles */
.wifm-summary-section {
    padding: 0;
}

.wifm-summary-title {
    font-size: 22px;
    color: #333;
    margin: 0 0 10px 0;
    font-weight: 600;
    font-family: inherit;
}

.wifm-summary-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 25px 0;
    line-height: 1.6;
    font-family: inherit;
}

.wifm-summary-content {
    background: #f9f9f9;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e5e5e5;
    font-family: inherit;
}

.wifm-summary-group {
    margin-bottom: 25px;
}

.wifm-summary-group:last-child {
    margin-bottom: 0;
}

.wifm-summary-group-title {
    font-size: 17px;
    color: #ff7396;
    margin: 0 0 15px 0;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.wifm-summary-content p {
    margin: 8px 0;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    font-family: inherit;
}

.wifm-summary-content p strong {
    color: #333;
    font-weight: 600;
    font-family: inherit;
}

.wifm-summary-event {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.wifm-summary-event:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.wifm-summary-indent {
    padding-left: 20px;
    color: #555 !important;
}

.wifm-summary-note {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin: 0 0 15px 0;
    font-family: inherit;
    line-height: 1.5;
}

/* Step 1 Buttons Container */
.wifm-step1-buttons {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

/* Edit Details Button */
.wifm-edit-btn {
    background: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-family: inherit;
    flex-shrink: 0;
}

.wifm-edit-btn svg {
    flex-shrink: 0;
}

.wifm-edit-btn:hover {
    background: #e5e5e5;
    border-color: #ccc;
    color: #333;
}

/* Continue Button */
.wifm-continue-btn {
    background: #ff7396;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    flex: 1;
    justify-content: center;
    font-family: inherit;
}

.wifm-continue-btn:hover {
    background: #ff5a7e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 115, 150, 0.3);
}

.wifm-continue-btn:active {
    transform: translateY(0);
}

.wifm-modal-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Step 2 Footer: Same layout as Step 1 (side by side buttons) */
#wifm-modal-step-2 .wifm-modal-footer {
    background: white;
    padding: 15px 30px 25px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    border-top: 2px solid #f0f0f0;
    flex-shrink: 0;
}

#wifm-modal-step-2 .wifm-modal-description {
    text-align: center;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

#wifm-modal-step-2 .wifm-modal-footer .wifm-modal-description {
    width: 100%;
    text-align: center;
    margin: 0 0 5px;
}

#wifm-modal-step-2 .wifm-modal-footer .wifm-whatsapp-btn {
    width: 100%;
}

/* Modal Description in Footer */
.wifm-modal-footer .wifm-modal-description {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Prevent body scroll when modal is open */
body.wifm-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
    padding-right: 0 !important;
}

/* Ensure smooth scrollbar transition */
html {
    overflow-y: scroll;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .wifm-modal-content {
        width: 95%;
        border-radius: 12px;
        height: 90vh;
        max-height: 90vh;
    }
    
    .wifm-modal-scroll-wrapper {
        max-height: calc(90vh - 160px);
    }
    
    .wifm-modal-header {
        padding: 25px 20px 15px 20px;
    }
    
    .wifm-modal-body {
        padding: 20px 20px 25px 20px;
    }
    
    .wifm-modal-footer {
        padding: 15px 20px 25px 20px;
    }
    
    .wifm-modal-title {
        font-size: 20px;
    }
    
    .wifm-id-value {
        font-size: 26px;
    }
    
    .wifm-whatsapp-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    .wifm-success-icon {
        width: 60px;
        height: 60px;
    }

    .video-thumbnail-wrapper{
        max-width: 70%;
    }
    
    /* Summary mobile styles */
    .wifm-summary-title {
        font-size: 18px;
    }
    
    .wifm-summary-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .wifm-summary-content {
        padding: 16px;
    }
    
    .wifm-summary-group-title {
        font-size: 16px;
    }
    
    .wifm-summary-content p {
        font-size: 14px;
    }
    
    .wifm-summary-indent {
        padding-left: 15px;
    }
    
    .wifm-step1-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .wifm-edit-btn,
    .wifm-continue-btn {
        width: 100%;
    }
    
    .wifm-continue-btn {
        padding: 14px 28px;
        font-size: 15px;
    }
    
    /* Mobile: WhatsApp first, then Back button - both full width */
    #wifm-modal-step-2 .wifm-modal-footer {
        padding: 20px 20px 25px;
    }
    
    #wifm-modal-step-2 .wifm-modal-footer .wifm-step1-buttons {
        flex-direction: column;
    }
    
    #wifm-modal-step-2 .wifm-modal-footer .wifm-edit-btn {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    #wifm-modal-step-2 .wifm-modal-footer .wifm-continue-btn {
        order: 1;
        width: 100%;
    }
    
    #wifm-modal-step-2 .wifm-modal-footer .wifm-modal-description {
        order: 3;
        margin-top: 10px;
    }
    
    /* Package details mobile */
    .wifm-packages-section {
        padding: 16px;
    }
    
    .wifm-packages-title {
        font-size: 17px;
        margin-bottom: 8px;
    }
    
    .wifm-select-package-text {
        font-size: 13px;
        margin-bottom: 14px;
    }
    
    .wifm-package-item {
        padding: 14px;
        margin-bottom: 10px;
    }
    
    .wifm-package-selected-badge {
        width: 26px;
        height: 26px;
        top: 10px;
        right: 10px;
    }
    
    .wifm-package-selected-badge svg {
        width: 16px;
        height: 16px;
    }
    
    .wifm-package-name {
        font-size: 15px;
    }
    
    .wifm-package-price {
        font-size: 18px;
    }
    
    .wifm-package-features {
        font-size: 12px;
    }
    
    .wifm-language-note {
        font-size: 11px;
        padding: 8px;
    }
    
    .wifm-modal-footer .wifm-modal-description {
        font-size: 13px;
        margin-bottom: 12px;
    }
}

/* Extra Small Mobile */
@media (max-width: 480px) {
    .wifm-modal-content {
        height: 75vh;
        max-height: 75vh;
    }
    
    .wifm-modal-scroll-wrapper {
        max-height: calc(75vh - 140px);
    }
    
    .wifm-modal-header {
        padding: 20px 16px 12px 16px;
    }
    
    .wifm-modal-body {
        padding: 16px 16px 20px 16px;
    }
    
    .wifm-modal-footer {
        padding: 12px 16px 20px 16px;
    }
    
    /* Step 1 - Summary content padding */
    .wifm-summary-content {
        padding: 12px;
    }
    
    /* Step 2 - Packages section padding */
    .wifm-packages-section {
        padding: 12px;
    }
    
    .wifm-packages-title {
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .wifm-select-package-text {
        font-size: 12px;
        margin-bottom: 12px;
    }
    
    .wifm-package-item {
        padding: 12px;
        margin-bottom: 8px;
    }
    
    .wifm-package-selected-badge {
        width: 24px;
        height: 24px;
        top: 8px;
        right: 8px;
    }
    
    .wifm-package-selected-badge svg {
        width: 14px;
        height: 14px;
    }
    
    .wifm-package-name {
        font-size: 14px;
    }
    
    .wifm-package-price {
        font-size: 16px;
    }
    
    .wifm-package-features {
        font-size: 11px;
        line-height: 1.6;
    }
    
    .wifm-package-features li {
        padding-left: 18px;
        margin-bottom: 4px;
    }
    
    .wifm-modal-title {
        font-size: 18px;
    }
    
    .wifm-id-value {
        font-size: 24px;
    }
    
    .wifm-success-icon {
        width: 50px;
        height: 50px;
    }
    
    .wifm-whatsapp-btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .wifm-modal-footer .wifm-modal-description {
        font-size: 12px;
    }
}

/* Family Name Split Fields - Responsive Layout */
.wifm-family-split {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.wifm-family-prefix {
    flex: 0 0 auto;
    min-width: 140px;
    width: 22%;
}

.wifm-family-names {
    flex: 1 1 auto;
    min-width: 200px;
    position: relative;
}

/* Mobile: Stack vertically when screen is too narrow */
@media (max-width: 768px) {
    .wifm-family-split {
        gap: 15px;
    }
    
    .wifm-family-prefix {
        width: 100%;
        min-width: 100%;
    }
    
    .wifm-family-names {
        width: 100%;
        min-width: 100%;
    }
}

