/* Quform Custom 2025 Compact-2 Variant - Final Winner */
/* Even more compact - maximum efficiency while keeping readability */
/* Label font size increased to 16px */
/* Mobile font boosts: labels/inputs +1px, subtitle +1px */

/* 3-1-2026 */
/* Update container for white background + soft neumorphic shadows */
/* Balanced Neumorphism Variant - Subtle but noticeable 3D effect */
.quform-theme-custom-2025 {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 30px;
    background: #fff !important; /* White background */
    border-radius: 12px;
    border: 1px solid #e0e0e0; /* Remove border for neumorphism */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08), /* Balanced outer shadow */
                inset 0 2px 4px rgba(255, 255, 255, 0.5), /* Soft highlight */
                inset 0 -2px 4px rgba(0, 0, 0, 0.04); /* Gentle inner shadow */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Optional: Add neumorphic shadows to inputs for more depth */
.quform-theme-custom-2025 .quform-input input,
.quform-theme-custom-2025 .quform-input select,
.quform-theme-custom-2025 .quform-input textarea {
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05) !important; /* Soft inner shadow */
}



/* Title & Subtitle */
.quform-theme-custom-2025 .quform-title {
    margin: 5px 0 5px 0;
	/*margin: 0 0 4px 0;*/
    font-size: 26px;
    font-weight: 600;
    color: #1a1a1a;
    text-align: center;
    line-height: 1.2;
}
.quform-theme-custom-2025 .quform-description {
    margin: 0 0 20px 0;
	/*margin: 0 0 10px 0;*/
    font-size: 15px;
    color: #666;
    text-align: center;
}

/* Hide unwanted old text */
.quform-theme-custom-2025 .quform-description-info,
.quform-theme-custom-2025 .quform-description-button {
    display: none;
}

/* Labels - 16px on desktop */
.quform-theme-custom-2025 .quform-spacer > label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 3px;
}

/* Inputs, Selects, Textarea */
.quform-theme-custom-2025 .quform-input input,
.quform-theme-custom-2025 .quform-input select,
.quform-theme-custom-2025 .quform-input textarea {
    width: 100% !important;
    padding: 9px 12px !important;
    font-size: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: white !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
	-moz-appearance: none !important; /* Added for Firefox select styling */
    appearance: none !important;
    box-sizing: border-box !important;
}

/* Focus state */
.quform-theme-custom-2025 .quform-input input:focus,
.quform-theme-custom-2025 .quform-input select:focus,
.quform-theme-custom-2025 .quform-input textarea:focus {
    outline: none !important;
    border-color: #0066FF !important;
    box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.1) !important;
}

/* Error state for fields */
.quform-theme-custom-2025 .quform-has-error .quform-input input,
.quform-theme-custom-2025 .quform-has-error .quform-input select,
.quform-theme-custom-2025 .quform-has-error .quform-input textarea {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

/* Custom dropdown arrow */
.quform-theme-custom-2025 .quform-input select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23333' d='M1 0l5 6 5-6z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    background-size: 12px !important;
}

/* Element spacing */
.quform-theme-custom-2025 .quform-element {
    margin-bottom: 8px;
}

/* Submit Button */
.quform-theme-custom-2025 .quform-submit-inner button {
    width: 100%;
    padding: 11px;
    background: #0066FF;
    color: white;
    border: none !important;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: none !important;
}

.quform-theme-custom-2025 .quform-submit-inner button:hover {
    background: #0052CC;
}

/* Default loading */
.quform-theme-custom-2025 .quform-loading {
    display: inline-block !important;
    vertical-align: middle !important;
}

/* Remove extra gap */
.quform-theme-custom-2025 .quform-loading-wrap {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 0 !important;
}
.quform-theme-custom-2025 .quform-submit {
    margin-bottom: 0 !important;
}

/* Error Messages */
.quform-theme-custom-2025 .quform-error-message {
    background: #fee2e2 !important;
    border: 1px solid #ef4444 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin: 10px 0 !important;
    color: #991b1b !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    text-align: center !important;
}

.quform-theme-custom-2025 .quform-error-message .quform-error-title {
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    font-size: 16px !important;
}

.quform-theme-custom-2025 .quform-error {
    color: #ef4444 !important;
    font-size: 14px !important;
    margin-top: 4px !important;
    display: block !important;
}

/* Success message */
.quform-theme-custom-2025 .quform-success-message {
    background: #dcfce7 !important;
    border: 1px solid #22c55e !important;
    border-radius: 12px !important;
    padding: 10px !important;
    margin: 10px 0 !important;
    color: #166534 !important;
    font-size: 15px !important;
    text-align: center !important;
}

/* Mobile - Font size boosts for better readability */
@media (max-width: 480px) {
    .quform-theme-custom-2025 {
        padding: 14px 12px;
    }
    .quform-theme-custom-2025 .quform-spacer > label {
        font-size: 17px !important; /* Labels +1px */
    }
    .quform-theme-custom-2025 .quform-input input,
    .quform-theme-custom-2025 .quform-input select,
    .quform-theme-custom-2025 .quform-input textarea {
        font-size: 17px !important; /* Inputs +1px */
    }
    .quform-theme-custom-2025 .quform-description {
        font-size: 16px !important; /* Subtitle +1px */
    }
    .quform-theme-custom-2025 .quform-submit-inner button {
        font-size: 19px !important; /* Button +1px */
    }
    .quform-theme-custom-2025 .quform-element {
        margin-bottom: 7px;
    }
}


/* 3-11-2026 */
/* Simple tablet padding fix for iPad Pro & Nest Hub (exactly 1024px) */
@media (width: 1024px) {
    .quform-theme-custom-2025 {
        padding: 20px 12px !important;
		
    }
}

/* === ADD YOUR NEW RULES BELOW THIS LINE === */
/* Example new rule */
/* Force black placeholder text in iOS Safari dropdowns */
.quform-theme-custom-2025 .quform-input select option {
    color: #1a1a1a !important; /* Black text for all options */
}

/* Specifically target the placeholder option if needed */
.quform-theme-custom-2025 .quform-input select option[value=""],
.quform-theme-custom-2025 .quform-input select option:disabled {
    color: #1a1a1a !important; /* Or #999 for a subtle gray placeholder */
}







/* Gemini 1/4/2025 This removes the old GIF and creates a modern "circle-gap" spinner. */
/* 1. Hide the old GIF icon */
/* 1. HIDE SPINNER BY DEFAULT (Fixes constant running in Chrome) */
.quform-theme-custom-2025 .quform-loading-wrap {
    display: none; 
    text-align: center;
    margin-top: 15px;
}


/* 3. MODERN SPINNER DESIGN */
.quform-theme-custom-2025 .quform-loading-wrap .quform-loading {
    background: none !important; /* Remove old GIF */
    width: 30px;
    height: 30px;
    display: inline-block;
}

.quform-theme-custom-2025 .quform-loading-wrap .quform-loading::after {
    content: "";
    box-sizing: border-box;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid #e2e8f0; /* Light gray track */
    border-top-color: #2563eb; /* Blue spinning part */
    animation: quform-spinner 0.7s linear infinite;
    display: block;
}

@keyframes quform-spinner {
    to { transform: rotate(360deg); }
}


/* --- SUBMIT BUTTON GRAY STATE --- */

/* --- FINAL BUTTON GRAY STATE FIX --- */

/* --- HIGH PRIORITY BUTTON GRAY STATE --- */

/* --- SAFE CSS-ONLY BUTTON GRAYING --- */


/* --- 3-11-2026 --- */
/* Fix button text wrapping on tablets (1024px width devices) */
@media (max-width: 1024px) {
    .quform-theme-custom-2025 .quform-submit-inner button {
        white-space: nowrap !important;          /* Prevent wrapping */
        font-size: 17px !important;             /* Slightly smaller on tablets */
        padding: 12px 20px !important;          /* Balanced padding */
        min-height: 52px !important;            /* Fixed height to prevent stretching */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}
