/* Modern Contact Form Styles */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@100;200;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Impact&display=swap');

/* Reset and Base Styles */
.mcf-contact-form-wrapper * {
    box-sizing: border-box;
}

.mcf-contact-form-wrapper {
    font-family: 'Antonio', sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    color: #000000;
}

.mcf-form-container {
    display: flex;
    gap: 48px;
    align-items: flex-start;
    background: #ffffff;
    border-radius: 0;
    box-shadow: none;
}

/* Left Section Container */
.mcf-left-section {
    flex: 1;
    min-width: 300px;
}

/* Header Section */
.mcf-header-section {
    margin-bottom: 24px;
}

.mcf-contact-badge {
    background: #000000;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-family: 'Impact', sans-serif;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 8px;
}

.mcf-main-title {
    font-family: 'Impact', 'Antonio', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px 0;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.mcf-description {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin: 0 0 24px 0;
    max-width: 450px;
}

/* Preferences Section */
.mcf-preferences-section {
    margin-bottom: 0;
}

.mcf-preference-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    width: 100%;
}

.mcf-preference-label {
    font-family: 'Impact', 'Antonio', sans-serif;
    font-size: 64px;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

/* Toggle Switches */
.mcf-preference-toggle {
    position: relative;
}

.mcf-toggle-input {
    opacity: 0;
    position: absolute;
}

.mcf-toggle-slider {
    width: 120px;
    height: 60px;
    background: #e5e7eb;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-end; /* Default to right (OFF state) */
    padding: 5px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    border: 2px solid transparent;
}

.mcf-toggle-slider:hover {
    border-color: #9ca3af;
}

.mcf-toggle-slider:active {
    transform: scale(0.95);
}

/* Middle toggle (CHEAP) - icon on left side when OFF */
.mcf-preference-item:nth-child(2) .mcf-toggle-slider {
    justify-content: flex-start;
}

/* ON state - move icon to opposite side */
.mcf-toggle-input:checked + .mcf-toggle-slider {
    background: #000000;
    justify-content: flex-start;
}

.mcf-preference-item:nth-child(2) .mcf-toggle-input:checked + .mcf-toggle-slider {
    background-color: #ff0000; /* Red for cheap */
    justify-content: flex-end;
}

/* Active class for additional styling */
.mcf-toggle-slider.active {
    background: #000000;
}

.mcf-preference-item:nth-child(2) .mcf-toggle-slider.active {
    background-color: #ff0000;
}


.mcf-toggle-icon {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.mcf-toggle-input:checked + .mcf-toggle-slider .mcf-toggle-icon {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.mcf-toggle-slider .mcf-icon {
    width: 28px;
    height: 28px;
    filter: none;
}


/* Form Styles */
.mcf-form {
    flex: 2;
    min-width: 400px;
    background: #fff;
    padding: 24px;
    border-radius: 10px;
}

.mcf-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.mcf-form-group {
    flex: 1;
    position: relative;
}

.mcf-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #000000;
}

.mcf-input-container {
    display: flex;
    align-items: center;
    border: 1px solid #d1d5db;
    border-radius: 30px;
    background: #f5f5f5;
    transition: all 0.3s ease;
    overflow: hidden;
    padding: 0;
}

.mcf-input-container.has-error,
.mcf-textarea-wrapper.has-error {
    border-color: #dc3545;
    background: #ffffff;
}

.mcf-field-error {
    margin-top: 6px;
    color: #dc3545;
    font-size: 12px;
}

.mcf-input-container:focus-within {
    border-color: #9ca3af;
    background: #ffffff;
}

.mcf-input-icon-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    flex-shrink: 0;
    min-width: 50px;
    border-right: 1px solid #e5e7eb;
}

.mcf-input-icon {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    filter: grayscale(100%) brightness(0.5);
}

.mcf-service-dropdown-trigger .mcf-input-icon {
    width: 20px;
    height: 20px;
}

.mcf-service-dropdown-trigger .mcf-input-icon svg {
    stroke: currentColor;
    stroke-width: 2;
    color: inherit;
}

/* Ensure icon section border matches Date Needed field */
.mcf-service-dropdown-trigger .mcf-input-icon-section {
    border-right: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}

.mcf-input-field-section {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
}

.mcf-service-dropdown-trigger .mcf-input-field-section {
    padding: 0;
    background: #ffffff;
}

.mcf-input,
.mcf-select,
.mcf-textarea {
    width: 100%;
    padding: 14px 15px 14px 0;
    border: none;
    font-size: 15px;
    font-family: 'Antonio', sans-serif;
    background: transparent;
    color: #333;
    transition: all 0.3s ease;
    font-weight: 400;
    outline: none;
    border-radius: 0;
}

.mcf-textarea {
    border-radius: 20px !important;
}

.mcf-input::placeholder,
.mcf-textarea::placeholder {
    color: #9ca3af;
}

.mcf-input:focus,
.mcf-select:focus,
.mcf-textarea:focus {
    color: #000;
}

.mcf-select {
    appearance: none;
    cursor: pointer;
    padding-right: 30px;
}

.mcf-select-arrow {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
    color: #666666;
    pointer-events: none;
    transition: transform 0.3s ease;
}

/* Service Section */
.mcf-service-section {
    margin: 16px 0;
}

.mcf-service-title {
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    margin-bottom: 12px;
    text-transform: uppercase;
}

/* Mobile select - hidden on desktop */
.mcf-service-select-mobile {
    display: none;
    position: relative;
}

.mcf-service-dropdown-trigger {
    cursor: pointer;
    user-select: none;
}

.mcf-service-dropdown-trigger:active,
.mcf-service-dropdown-trigger.active {
    border-color: #9ca3af;
}

.mcf-service-dropdown-trigger.active .mcf-input-container {
    background: #ffffff;
    border-color: #9ca3af;
}

.mcf-service-dropdown-text {
    flex: 1;
    color: #9ca3af;
    font-size: 16px;
    font-family: 'Antonio', sans-serif;
    font-weight: 400;
    padding: 8px 16px;
    box-sizing: border-box;
    display: block;
    width: 100%;
    line-height: 24px;
    height: 40px;
    background: #ffffff;
}

.mcf-service-dropdown-trigger.active .mcf-select-arrow {
    transform: rotate(180deg);
}

.mcf-service-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
    margin-top: 0;
}

.mcf-service-dropdown-menu.active {
    display: block;
}

.mcf-service-dropdown-option {
    display: flex;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-bottom: 4px;
}

.mcf-service-dropdown-option:last-child {
    margin-bottom: 0;
}

.mcf-service-dropdown-option:hover {
    background: #f5f5f5;
}

.mcf-service-dropdown-option input[type="checkbox"] {
    display: none;
}

.mcf-service-dropdown-option .mcf-checkbox-custom {
    margin-right: 12px;
    width: 20px;
    height: 20px;
    border: 2px solid #cccccc;
    border-radius: 4px;
    display: inline-block;
    position: relative;
    flex-shrink: 0;
}

.mcf-service-dropdown-option input[type="checkbox"]:checked + .mcf-checkbox-custom {
    background: #000000;
    border-color: #000000;
}

.mcf-service-dropdown-option input[type="checkbox"]:checked + .mcf-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

.mcf-service-option-text {
    flex: 1;
    font-size: 15px;
    font-family: 'Antonio', sans-serif;
    color: #000;
    user-select: none;
}

.mcf-service-dropdown-option input[type="checkbox"]:checked ~ .mcf-service-option-text {
    font-weight: 600;
}

.mcf-service-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mcf-service-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mcf-checkbox-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #000000;
}

.mcf-checkbox-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 4px;
}


.mcf-checkbox-option input[type="checkbox"] {
    opacity: 0;
    position: absolute;
}

.mcf-checkbox-option input[type="checkbox"]:checked + .mcf-checkbox-custom {
    border-color: #000;
    background: #000;
}

.mcf-checkbox-option input[type="checkbox"]:checked + .mcf-checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
}

/* Message Section */
.mcf-message-section {
    margin: 8px 0;
}
.mcf-textarea-wrapper {
    position: relative;
}

.mcf-textarea {
    min-height: 120px;
    resize: vertical;
    padding: 14px 15px;
    padding-bottom: 35px; /* Add bottom padding to make room for counter */
    border: 1px solid #d1d5db;
    border-radius: 30px;
    background: #f5f5f5;
}

.mcf-textarea:focus {
    background: #ffffff;
    border-color: #9ca3af;
}

.mcf-character-count {
    position: absolute;
    bottom: 15px;
    left: 15px;
    font-size: 12px;
    color: #999999;
    font-family: inherit;
    pointer-events: none;
}


/* Submit Button */
.mcf-submit-section {
    margin-top: 8px;
}

.mcf-submit-btn {
    width: 100%;
    padding: 18px 30px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-family: 'Antonio', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mcf-submit-btn:hover {
    background: #333;
}


.mcf-loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Message Container */
.mcf-message-container {
    margin: 20px 0;
    padding: 16px;
    border-radius: 8px;
    text-align: center;
}

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

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

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .mcf-form-container {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }
    
    .mcf-left-section {
        min-width: auto;
    }
    
    .mcf-contact-badge {
        margin-bottom: 16px;
    }
    
    .mcf-main-title {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 12px;
    }
    
    .mcf-description {
        font-size: 14px;
        margin-bottom: 16px;
        max-width: 100%;
    }
    
    .mcf-preferences-section {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .mcf-preference-item {
        margin-bottom: 8px;
    }
    
    .mcf-preference-label {
        font-size: 44px;
    }
    
    .mcf-toggle-slider {
        width: 110px;
        height: 54px;
        border-radius: 27px;
    }
    
    .mcf-toggle-icon {
        width: 46px;
        height: 46px;
    }
    
    .mcf-toggle-slider .mcf-icon {
        width: 24px;
        height: 24px;
    }
    
    .mcf-form {
        min-width: auto;
        padding: 0;
    }
    
    .mcf-form-row {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 12px;
    }
    
    .mcf-input,
    .mcf-select,
    .mcf-textarea {
        font-size: 16px; /* avoid iOS zoom */
    }

    .mcf-service-section {
        margin: 12px 0;
    }

    /* Hide checkboxes on mobile, show custom dropdown */
    .mcf-service-options {
        display: none;
    }
    
    .mcf-service-select-mobile {
        display: block;
    }

    .mcf-submit-section {
        margin-top: 12px;
    }
}

@media (max-width: 480px) {
    .mcf-main-title {
        font-size: 28px;
    }
    
    .mcf-preference-label {
        font-size: 40px;
    }
    
    .mcf-toggle-slider {
        width: 100px;
        height: 50px;
    }
    
    .mcf-toggle-icon {
        width: 44px;
        height: 44px;
    }
}