/* 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 */

.quform-theme-custom-2025 {
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 14px 16px;
    background: #f1f3f8;
    border-radius: 18px;
    border: 2px solid #e2e8f0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Title & Subtitle */
.quform-theme-custom-2025 .quform-title {
    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 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;
    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;
    }
}