/* Modal accessibility and body scroll prevention */
body.modal-open {
    overflow: hidden !important;
}

/* Focus management for modal */
.woo-presupuesto-modal:focus {
    outline: none;
}

.woo-presupuesto-modal[aria-hidden="false"] {
    display: block !important;
}

.woo-presupuesto-modal[aria-hidden="true"] {
    display: none !important;
}

/* Captcha Styling - More minimalist */
.woo-presupuesto-security-section {
    margin: 15px 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background-color: #fafbfc;
}

.woo-presupuesto-security-section h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

/* Hide captcha v3 completely */
.woo-presupuesto-captcha-v3 {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

.woo-presupuesto-captcha-field {
    margin-bottom: 15px;
}

.woo-presupuesto-captcha-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.woo-presupuesto-captcha-input {
    width: 150px !important;
    max-width: 100%;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    font-family: inherit !important;
    line-height: 1.5 !important;
    transition: all 0.2s ease !important;
    opacity: 1 !important;
}

.woo-presupuesto-captcha-input:focus {
    border-color: #667eea !important;
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

.woo-presupuesto-captcha-field .description {
    margin-top: 5px;
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.woo-presupuesto-captcha-field .required {
    color: #e74c3c;
    font-weight: bold;
}

/* Honeypot field - should be invisible */
.woo-presupuesto-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Google reCAPTCHA Styling */
.woo-presupuesto-google-recaptcha {
    margin-bottom: 15px;
}

.woo-presupuesto-google-recaptcha .g-recaptcha {
    margin-bottom: 10px;
}

.woo-presupuesto-google-recaptcha-v3 {
    margin-bottom: 10px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.woo-presupuesto-google-recaptcha-v3 .description {
    background-color: #f0f0f0;
    padding: 8px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* Ensure Google reCAPTCHA is responsive */
@media (max-width: 480px) {
    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: 0 0;
    }
}

/* Professional Button Styling */
.woo-presupuesto-btn {
    background: #2c3e50 !important;
    color: #fff !important;
    border: 2px solid #2c3e50 !important;
    border-radius: 4px !important;
    padding: 12px 24px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    position: relative !important;
    min-height: 48px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-family: inherit !important;
}

/* Serious Professional Style */
.woo-presupuesto-btn-serious {
    background: #34495e !important;
    border-color: #34495e !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.woo-presupuesto-btn:hover {
    background: #1a252f !important;
    border-color: #1a252f !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.woo-presupuesto-btn-serious:hover {
    background: #2c3e50 !important;
    border-color: #2c3e50 !important;
}

.woo-presupuesto-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2) !important;
}

.woo-presupuesto-btn:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(52, 73, 94, 0.2) !important;
}

/* Loading state */
.woo-presupuesto-btn.loading {
    pointer-events: none !important;
    opacity: 0.7 !important;
}

.woo-presupuesto-btn.loading::after {
    content: '' !important;
    position: absolute !important;
    width: 16px !important;
    height: 16px !important;
    margin: auto !important;
    border: 2px solid transparent !important;
    border-top-color: #ffffff !important;
    border-radius: 50% !important;
    animation: button-loading-spinner 1s ease infinite !important;
}

@keyframes button-loading-spinner {
    from { transform: rotate(0turn); }
    to { transform: rotate(1turn); }
}

/* Icon support */
.woo-presupuesto-btn .icon {
    width: 16px !important;
    height: 16px !important;
    fill: currentColor !important;
}

/* Alternative button styles */
.woo-presupuesto-btn.outline {
    background: transparent !important;
    color: #667eea !important;
    border: 2px solid #667eea !important;
    box-shadow: none !important;
}

.woo-presupuesto-btn.outline:hover {
    background: #667eea !important;
    color: #fff !important;
}

/* Modern Modal Design */
.woo-presupuesto-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    animation: modalFadeIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

@keyframes modalFadeIn {
    from { 
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to { 
        opacity: 1;
        backdrop-filter: blur(8px);
    }
}

.woo-presupuesto-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.woo-presupuesto-modal-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    padding: 20px 0;
}

.woo-presupuesto-modal-content {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(100px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.woo-presupuesto-modal-header {
    padding: 24px 32px 0;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.woo-presupuesto-modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
}

.woo-presupuesto-modal-body {
    padding: 0 32px 32px;
    overflow-y: auto;
    max-height: calc(90vh - 120px);
}

/* Modern Close Button */
.woo-presupuesto-close {
    background: #f1f5f9;
    border: none;
    border-radius: 8px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #64748b;
    font-size: 18px;
    font-weight: normal;
    padding: 0;
    line-height: 1;
}

.woo-presupuesto-close:hover {
    background: #e2e8f0;
    color: #475569;
    transform: scale(1.05);
}

.woo-presupuesto-close:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.woo-presupuesto-close:active {
    transform: scale(0.95);
}

/* Modern Form Design */
.woo-presupuesto-form {
    margin: 0;
}

.woo-presupuesto-field-wrapper {
    margin-bottom: 24px;
    position: relative;
}

.woo-presupuesto-field-wrapper label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    line-height: 1.4;
}

.woo-presupuesto-field-wrapper .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Modern Input Styling - Fixed for proper contrast */
.woo-presupuesto-field-wrapper input[type="text"],
.woo-presupuesto-field-wrapper input[type="email"],
.woo-presupuesto-field-wrapper input[type="tel"],
.woo-presupuesto-field-wrapper input[type="number"],
.woo-presupuesto-field-wrapper input[type="url"],
.woo-presupuesto-field-wrapper input[type="date"],
.woo-presupuesto-field-wrapper textarea,
.woo-presupuesto-field-wrapper select {
    width: 100% !important;
    padding: 12px 16px !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
    appearance: none !important;
    font-family: inherit !important;
    opacity: 1 !important;
}

.woo-presupuesto-field-wrapper input:focus,
.woo-presupuesto-field-wrapper textarea:focus,
.woo-presupuesto-field-wrapper select:focus {
    outline: none !important;
    border-color: #667eea !important;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1) !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

.woo-presupuesto-field-wrapper input:hover:not(:focus),
.woo-presupuesto-field-wrapper textarea:hover:not(:focus),
.woo-presupuesto-field-wrapper select:hover:not(:focus) {
    border-color: #d1d5db !important;
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* Textarea specific styling - Enhanced for contrast */
.woo-presupuesto-field-wrapper textarea {
    resize: vertical !important;
    min-height: 100px !important;
    font-family: inherit !important;
    color: #1f2937 !important;
    background-color: #ffffff !important;
}

/* Additional form field styling to ensure proper contrast */
.woo-presupuesto-form input,
.woo-presupuesto-form textarea,
.woo-presupuesto-form select {
    background-color: #ffffff !important;
    color: #1f2937 !important;
    border: 2px solid #e5e7eb !important;
    opacity: 1 !important;
}

.woo-presupuesto-form input:focus,
.woo-presupuesto-form textarea:focus,
.woo-presupuesto-form select:focus {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* Placeholder styling for better contrast */
.woo-presupuesto-field-wrapper input::placeholder,
.woo-presupuesto-field-wrapper textarea::placeholder {
    color: #9ca3af !important;
    opacity: 1 !important;
}

.woo-presupuesto-field-wrapper input::-webkit-input-placeholder,
.woo-presupuesto-field-wrapper textarea::-webkit-input-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.woo-presupuesto-field-wrapper input::-moz-placeholder,
.woo-presupuesto-field-wrapper textarea::-moz-placeholder {
    color: #9ca3af;
    opacity: 1;
}

.woo-presupuesto-field-wrapper input:-ms-input-placeholder,
.woo-presupuesto-field-wrapper textarea:-ms-input-placeholder {
    color: #9ca3af;
    opacity: 1;
}

/* Select styling */
.woo-presupuesto-field-wrapper select {
    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");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

/* Modern Checkbox and Radio Styling */
.woo-presupuesto-field-wrapper .checkbox-label,
.woo-presupuesto-field-wrapper .radio-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5;
    color: #374151;
    cursor: pointer;
    margin-bottom: 12px;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.woo-presupuesto-field-wrapper .checkbox-label:hover,
.woo-presupuesto-field-wrapper .radio-label:hover {
    color: #1f2937;
}

.woo-presupuesto-field-wrapper input[type="checkbox"],
.woo-presupuesto-field-wrapper input[type="radio"] {
    width: 18px;
    height: 18px;
    margin: 0;
    flex-shrink: 0;
    appearance: none;
    border: 2px solid #d1d5db;
    background-color: #ffffff;
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
}

.woo-presupuesto-field-wrapper input[type="checkbox"] {
    border-radius: 4px;
}

.woo-presupuesto-field-wrapper input[type="radio"] {
    border-radius: 50%;
}

.woo-presupuesto-field-wrapper input[type="checkbox"]:checked,
.woo-presupuesto-field-wrapper input[type="radio"]:checked {
    border-color: #667eea;
    background-color: #667eea;
}

.woo-presupuesto-field-wrapper input[type="checkbox"]:checked::before {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.woo-presupuesto-field-wrapper input[type="radio"]:checked::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
}

.woo-presupuesto-field-wrapper input[type="checkbox"]:focus,
.woo-presupuesto-field-wrapper input[type="radio"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Modern Product Info Section */
.woo-presupuesto-product-info {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}

.woo-presupuesto-product-info::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.woo-presupuesto-product-info h4 {
    margin: 0 0 16px 0;
    color: #1e293b;
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.woo-presupuesto-product-info h4::before {
    content: "🛍️";
    font-size: 20px;
}

#woo-presupuesto-product-details {
    font-size: 14px;
    line-height: 1.8;
    color: #475569;
}

#woo-presupuesto-product-details p {
    margin: 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

#woo-presupuesto-product-details strong {
    color: #1e293b;
    font-weight: 600;
    min-width: 80px;
}

#woo-presupuesto-product-details ul {
    margin: 8px 0 8px 20px;
    padding: 0;
}

#woo-presupuesto-product-details li {
    margin: 4px 0;
    color: #64748b;
}

/* Modern Form Actions */
.woo-presupuesto-form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.woo-presupuesto-form-actions button {
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    position: relative;
    overflow: hidden;
}

.woo-presupuesto-form-actions button.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

.woo-presupuesto-form-actions button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.woo-presupuesto-form-actions button.secondary {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.woo-presupuesto-form-actions button.secondary:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

/* Modern Loading Animation */
.woo-presupuesto-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
    color: #64748b;
    font-size: 16px;
    gap: 20px;
}

.woo-presupuesto-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: modernSpin 1s linear infinite;
    display: inline-block;
}

@keyframes modernSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modern Status Messages */
.woo-presupuesto-success-message,
.woo-presupuesto-error-message,
.woo-presupuesto-warning-message,
.woo-presupuesto-info-message {
    padding: 16px 20px;
    margin: 24px 0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.5;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.woo-presupuesto-success-message {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
    border: 1px solid #10b981;
}

.woo-presupuesto-success-message::before {
    content: "✅";
    font-size: 18px;
    flex-shrink: 0;
}

.woo-presupuesto-error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    border: 1px solid #ef4444;
}

.woo-presupuesto-error-message::before {
    content: "❌";
    font-size: 18px;
    flex-shrink: 0;
}

.woo-presupuesto-warning-message {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    border: 1px solid #f59e0b;
}

.woo-presupuesto-warning-message::before {
    content: "⚠️";
    font-size: 18px;
    flex-shrink: 0;
}

.woo-presupuesto-info-message {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
    border: 1px solid #3b82f6;
}

.woo-presupuesto-info-message::before {
    content: "ℹ️";
    font-size: 18px;
    flex-shrink: 0;
}

/* Single Product Wrapper */
.woo-presupuesto-single-wrapper {
    margin: 24px 0;
}

/* Error States */
.woo-presupuesto-field-wrapper.error input,
.woo-presupuesto-field-wrapper.error textarea,
.woo-presupuesto-field-wrapper.error select {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.woo-presupuesto-field-wrapper.error label {
    color: #dc2626;
}

.woo-presupuesto-field-error {
    color: #dc2626;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.woo-presupuesto-field-error::before {
    content: "⚠";
    font-size: 12px;
}

/* Accessibility Improvements */
.woo-presupuesto-btn:focus-visible,
.woo-presupuesto-field-wrapper input:focus-visible,
.woo-presupuesto-field-wrapper textarea:focus-visible,
.woo-presupuesto-field-wrapper select:focus-visible {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .woo-presupuesto-btn {
        border: 2px solid currentColor;
    }
    
    .woo-presupuesto-field-wrapper input,
    .woo-presupuesto-field-wrapper textarea,
    .woo-presupuesto-field-wrapper select {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .woo-presupuesto-btn,
    .woo-presupuesto-modal,
    .woo-presupuesto-modal-content,
    .woo-presupuesto-field-wrapper input,
    .woo-presupuesto-field-wrapper textarea,
    .woo-presupuesto-field-wrapper select,
    .woo-presupuesto-spinner {
        animation: none;
        transition: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .woo-presupuesto-modal {
        background: rgba(0, 0, 0, 0.9);
    }
    
    .woo-presupuesto-modal-content {
        background: #1f2937;
        color: #f9fafb;
    }
    
    .woo-presupuesto-modal-title {
        color: #f9fafb;
    }
    
    .woo-presupuesto-field-wrapper label {
        color: #e5e7eb;
    }
    
    .woo-presupuesto-field-wrapper input,
    .woo-presupuesto-field-wrapper textarea,
    .woo-presupuesto-field-wrapper select {
        background-color: #374151;
        border-color: #4b5563;
        color: #f9fafb;
    }
    
    .woo-presupuesto-product-info {
        background: linear-gradient(135deg, #374151 0%, #4b5563 100%);
        border-color: #6b7280;
    }
}

/* Price Messages for Non-Logged Users */
.woo-presupuesto-price-message {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 16px;
    margin: 16px 0;
    text-align: center;
}

.woo-presupuesto-price-message p {
    margin: 0;
    color: #475569;
    font-size: 14px;
}

.woo-presupuesto-price-message a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s ease;
}

.woo-presupuesto-price-message a:hover {
    color: #5a67d8;
    border-bottom-color: #5a67d8;
}

.woo-presupuesto-price-message-loop {
    text-align: center;
    margin: 8px 0;
}

.woo-presupuesto-price-message-loop p {
    margin: 0;
    font-size: 12px;
    color: #64748b;
}

.woo-presupuesto-price-message-loop a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: rgba(102, 126, 234, 0.1);
    transition: all 0.2s ease;
}

.woo-presupuesto-price-message-loop a:hover {
    background: rgba(102, 126, 234, 0.2);
    color: #5a67d8;
}

/* Responsive Design */
@media (max-width: 768px) {
    .woo-presupuesto-modal {
        padding: 16px;
    }
    
    .woo-presupuesto-modal-container {
        align-items: flex-end;
        padding: 0;
    }
    
    .woo-presupuesto-modal-content {
        max-width: 100%;
        width: 100%;
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        margin: 0;
    }
    
    .woo-presupuesto-modal-header {
        padding: 20px 24px 0;
        margin-bottom: 20px;
    }
    
    .woo-presupuesto-modal-title {
        font-size: 20px;
    }
    
    .woo-presupuesto-modal-body {
        padding: 0 24px 24px;
    }
    
    .woo-presupuesto-btn {
        padding: 16px 20px;
        font-size: 16px;
        width: 100%;
        justify-content: center;
    }
    
    .woo-presupuesto-field-wrapper input,
    .woo-presupuesto-field-wrapper textarea,
    .woo-presupuesto-field-wrapper select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 16px;
    }
    
    .woo-presupuesto-form-actions {
        flex-direction: column-reverse;
        gap: 8px;
    }
    
    .woo-presupuesto-form-actions button {
        width: 100%;
        justify-content: center;
    }
    
    .woo-presupuesto-product-info {
        margin: 24px 0;
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .woo-presupuesto-modal-header {
        padding: 16px 20px 0;
    }
    
    .woo-presupuesto-modal-body {
        padding: 0 20px 20px;
    }
    
    .woo-presupuesto-modal-title {
        font-size: 18px;
    }
    
    .woo-presupuesto-field-wrapper {
        margin-bottom: 20px;
    }
}

/* Print styles */
@media print {
    .woo-presupuesto-modal,
    .woo-presupuesto-btn {
        display: none !important;
    }
}

/* Animation for form submission success */
@keyframes successPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.woo-presupuesto-success-message.animate {
    animation: successPulse 0.6s ease-out;
}