/* Micaiah Cleaning Services Form Style - Conflict-Resistant Version */
/* Unique namespace: .mcs-quotation-form to prevent conflicts */

.mcs-quotation-form-wrapper {
    max-width: 100% !important;
    margin: 40px auto 0 auto !important;
    padding: 20px 0 0 0 !important;
    background: #E3F1FE !important;
    color: rgba(0, 41, 112, 1) !important;
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    position: relative !important;
    z-index: 1 !important;
    overflow: visible !important;
    width: 100% !important;
    clear: both !important;
    float: none !important;
}

/* Reset any inherited styles that might interfere */
.mcs-quotation-form-wrapper * {
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
}

.mcs-quotation-form-wrapper *:not(input):not(select):not(textarea):not(button) {
    background: transparent !important;
    border: none !important;
    outline: none !important;
}

/* Header styling to match Micaiah - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-header {
    text-align: center !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
    display: block !important;
}

.mcs-quotation-form-wrapper .mcs-form-header h1 {
    font-size: 32px !important;
    color: rgba(0, 41, 112, 1) !important;
    margin: 8px auto !important;
    font-weight: normal !important;
    font-family: 'Open Sans', 'Open Sans Fallback' !important;
    text-align: center !important;
    line-height: 1.2 !important;
    display: block !important;
    width: 100% !important;
}

.mcs-quotation-form-wrapper .mcs-form-header h5 {
    font-weight: 800 !important;
    font-family: 'Open Sans', 'Open Sans Fallback' !important;
    text-align: center !important;
    line-height: 1.2 !important;
    margin: 8px auto !important;
    color: rgba(0, 41, 112, 1) !important;
    display: block !important;
    width: 100% !important;
}

/* Horizontal divider */
.mcs-quotation-form-wrapper .mcs-form-header::after {
    content: '' !important;
    display: block !important;
    width: 100px !important;
    height: 2px !important;
    background-color: rgba(0, 41, 112, 1) !important;
    margin: 0 auto !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

/* Container layout matching Micaiah - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-container {
    display: flex !important;
    gap: 60px !important;
    background: transparent !important;
    padding: 20px 40px 100px !important;
    align-items: flex-start !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    border: none !important;
    flex-wrap: nowrap !important;
}

/* Info section on the left - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-info {
    flex: 0 0 368.5px !important;
    max-width: 368.5px !important;
    margin-top: 26px !important;
    margin-bottom: 8px !important;
    padding-right: 60px !important;
    background: transparent !important;
    border: none !important;
}

.mcs-quotation-form-wrapper .mcs-form-info p {
    font-size: 15px !important;
    line-height: 1.6 !important;
    color: rgba(0, 41, 112, 1) !important;
    margin-bottom: 1em !important;
    font-weight: normal !important;
    text-align: left !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Form section on the right - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-section {
    flex: 1 !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Form styling to match Micaiah exactly - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: rgba(0, 41, 112, 1) !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Form rows - 3 columns layout like Micaiah - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-row {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.8em !important;
    margin-bottom: 0.8em !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

.mcs-quotation-form-wrapper .mcs-form-row.full-width {
    grid-template-columns: 1fr !important;
}

/* Form groups - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
}

/* Labels matching Micaiah style - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-group label {
    font-size: 12px !important;
    color: rgba(0, 41, 112, 1) !important;
    font-weight: bold !important;
    margin-bottom: 0.3em !important;
    display: block !important;
    width: 100% !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

/* Input styling to match Micaiah - Enhanced Specificity */
.mcs-quotation-form-wrapper .mcs-form-group input[type="text"],
.mcs-quotation-form-wrapper .mcs-form-group input[type="email"],
.mcs-quotation-form-wrapper .mcs-form-group input[type="tel"],
.mcs-quotation-form-wrapper .mcs-form-group input[type="date"],
.mcs-quotation-form-wrapper .mcs-form-group input[type="file"],
.mcs-quotation-form-wrapper .mcs-form-group select,
.mcs-quotation-form-wrapper .mcs-form-group textarea {
    font-size: 12px !important;
    color: rgba(0, 41, 112, 1) !important;
    font-weight: 400 !important;
    padding: 0.6em !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    width: 100% !important;
    height: auto !important;
    box-sizing: border-box !important;
    text-align: left !important;
    direction: ltr !important;
    margin: 0 !important;
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    line-height: 1.2 !important;
    min-height: 2.5em !important;
}

/* Enhanced Input States and Interactions */
.mcs-quotation-form-wrapper .mcs-form-group input::placeholder,
.mcs-quotation-form-wrapper .mcs-form-group textarea::placeholder,
.mcs-quotation-form-wrapper .mcs-form-group select::placeholder {
    font-weight: bold !important;
    color: rgba(0, 41, 112, 1) !important;
}

.mcs-quotation-form-wrapper .mcs-form-group input:focus,
.mcs-quotation-form-wrapper .mcs-form-group select:focus,
.mcs-quotation-form-wrapper .mcs-form-group textarea:focus {
    border-color: #0073aa !important;
    background: #fff !important;
    outline: none !important;
    box-shadow: 0 0 5px rgba(0, 115, 170, 0.2) !important;
}

/* Textarea specific - Enhanced */
.mcs-quotation-form-wrapper .mcs-form-group textarea {
    min-height: 60px !important;
    height: 60px !important;
    resize: vertical !important;
}

/* Select dropdown - Enhanced */
.mcs-quotation-form-wrapper .mcs-form-group select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    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='currentColor' 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") !important;
    background-repeat: no-repeat !important;
    background-position: right 1em center !important;
    background-size: 1em !important;
    padding-right: 2.5em !important;
}

/* Checkbox styling for date flexible - Enhanced */
.mcs-quotation-form-wrapper .mcs-date-flexible-group {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.mcs-quotation-form-wrapper .mcs-checkbox-group {
    display: flex !important;
    gap: 1em !important;
    margin-top: 0.5em !important;
    flex-wrap: wrap !important;
}

.mcs-quotation-form-wrapper .mcs-checkbox-label {
    display: flex !important;
    align-items: center !important;
    gap: 0.5em !important;
    font-weight: normal !important;
    cursor: pointer !important;
    font-size: 12px !important;
    color: rgba(0, 41, 112, 1) !important;
}

.mcs-quotation-form-wrapper .mcs-checkbox-label input[type="checkbox"],
.mcs-quotation-form-wrapper .mcs-checkbox-label input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* File upload styling - Enhanced */
.mcs-quotation-form-wrapper .mcs-file-upload-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 1em !important;
    flex-wrap: wrap !important;
}

.mcs-quotation-form-wrapper .mcs-file-upload-btn {
    background: #0073aa !important;
    color: #fff !important;
    padding: 0.6em 1.2em !important;
    border: none !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

.mcs-quotation-form-wrapper .mcs-file-upload-btn:hover {
    background: #005177 !important;
}

.mcs-quotation-form-wrapper .mcs-file-upload-text {
    font-size: 12px !important;
    color: rgba(0, 41, 112, 1) !important;
}

/* Submit button exactly like Micaiah - Enhanced */
.mcs-quotation-form-wrapper .mcs-form-submit {
    text-align: center !important;
    margin: 1em auto !important;
    display: block !important;
    width: 100% !important;
}

.mcs-quotation-form-wrapper .mcs-submit-button {
    background-color: rgba(0, 41, 112, 1) !important;
    color: rgba(255, 255, 255, 1) !important;
    font-size: 14px !important;
    padding: 0.6em 2em !important;
    border: none !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    width: 170px !important;
    display: block !important;
    margin: 0 auto !important;
    text-align: center !important;
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

.mcs-quotation-form-wrapper .mcs-submit-button:hover {
    background: #005177 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1) !important;
}

.mcs-quotation-form-wrapper .mcs-submit-button:disabled {
    background: #ccc !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Full width fields adjustment */
.mcs-quotation-form-wrapper .mcs-form-row.full-width .mcs-form-group {
    width: 100% !important;
    max-width: 100% !important;
}

/* Success/error messages */
.mcs-quotation-form-wrapper .mcs-message {
    padding: 1em !important;
    margin: 1em 0 !important;
    border-radius: 4px !important;
    text-align: center !important;
}

.mcs-quotation-form-wrapper .mcs-message.success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.mcs-quotation-form-wrapper .mcs-message.error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* Error styling for form fields */
.mcs-quotation-form-wrapper .mcs-form-group input.error,
.mcs-quotation-form-wrapper .mcs-form-group select.error,
.mcs-quotation-form-wrapper .mcs-form-group textarea.error {
    border-color: #dc3545 !important;
    box-shadow: 0 0 5px rgba(220, 53, 69, 0.3) !important;
}

.mcs-quotation-form-wrapper .mcs-form-group input.error:focus,
.mcs-quotation-form-wrapper .mcs-form-group select.error:focus,
.mcs-quotation-form-wrapper .mcs-form-group textarea.error:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5) !important;
}

/* Enhanced Responsive Design with Multiple Breakpoints */

/* Large tablets and small desktops */
@media screen and (max-width: 1200px) {
    .mcs-quotation-form-wrapper .mcs-form-container {
        gap: 40px !important;
        padding: 15px 30px 80px !important;
    }
}

/* Tablets */
@media screen and (max-width: 992px) {
    .mcs-quotation-form-wrapper .mcs-form-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1em !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-container {
        flex-direction: column !important;
        gap: 2em !important;
        padding: 15px 20px 60px !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-info {
        flex: none !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 1em !important;
    }
}

/* Small tablets */
@media screen and (max-width: 768px) {
    .mcs-quotation-form-wrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-container {
        padding: 15px !important;
        gap: 1.5em !important;
    }

    .mcs-quotation-form-wrapper .mcs-form-row {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        margin: 0 0 1.2em 0 !important;
        gap: 0 !important;
    }

    .mcs-quotation-form-wrapper .mcs-form-group {
        width: 100% !important;
        box-sizing: border-box !important;
        margin-bottom: 1em !important;
    }

    .mcs-quotation-form-wrapper .mcs-submit-button {
        width: 100% !important;
        max-width: 100% !important;
        margin: 1em 0 !important;
        box-sizing: border-box !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-header h1 {
        font-size: 28px !important;
    }
}

/* Mobile phones */
@media screen and (max-width: 480px) {
    .mcs-quotation-form-wrapper .mcs-form-container {
        padding: 10px !important;
        gap: 1em !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-group input[type="text"],
    .mcs-quotation-form-wrapper .mcs-form-group input[type="email"],
    .mcs-quotation-form-wrapper .mcs-form-group input[type="tel"],
    .mcs-quotation-form-wrapper .mcs-form-group input[type="date"],
    .mcs-quotation-form-wrapper .mcs-form-group select,
    .mcs-quotation-form-wrapper .mcs-form-group textarea {
        font-size: 14px !important;
        padding: 0.8em !important;
        min-height: 3em !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-group label {
        font-size: 13px !important;
        margin-bottom: 0.5em !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-header h1 {
        font-size: 24px !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-submit-button {
        padding: 1em 2em !important;
        font-size: 16px !important;
    }
}

/* Extra small devices */
@media screen and (max-width: 360px) {
    .mcs-quotation-form-wrapper .mcs-form-container {
        padding: 8px !important;
    }
    
    .mcs-quotation-form-wrapper .mcs-form-group input[type="text"],
    .mcs-quotation-form-wrapper .mcs-form-group input[type="email"],
    .mcs-quotation-form-wrapper .mcs-form-group input[type="tel"],
    .mcs-quotation-form-wrapper .mcs-form-group input[type="date"],
    .mcs-quotation-form-wrapper .mcs-form-group select,
    .mcs-quotation-form-wrapper .mcs-form-group textarea {
        font-size: 16px !important;
        padding: 1em !important;
    }
}

/* Additional fallback rules to override any theme interference */
.mcs-quotation-form-wrapper {
    display: block !important;
    width: 100% !important;
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
    color: rgba(0, 41, 112, 1) !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
}

/* Specific overrides for form elements without breaking functionality */
.mcs-quotation-form-wrapper input[type="text"],
.mcs-quotation-form-wrapper input[type="email"],
.mcs-quotation-form-wrapper input[type="tel"],
.mcs-quotation-form-wrapper input[type="date"],
.mcs-quotation-form-wrapper input[type="file"],
.mcs-quotation-form-wrapper select,
.mcs-quotation-form-wrapper textarea {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Preserve radio button and checkbox functionality */
.mcs-quotation-form-wrapper input[type="radio"],
.mcs-quotation-form-wrapper input[type="checkbox"] {
    display: inline-block !important;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    cursor: pointer !important;
    appearance: auto !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
}

.mcs-quotation-form-wrapper button {
    cursor: pointer !important;
    display: inline-block !important;
    width: auto !important;
    font-family: 'Open Sans', 'Open Sans Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}
