/* Calculadora Tomazelli Plugin Styles */

.calculadora-tomazelli-wrapper {
    font-family: "Montserrat", sans-serif;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.elementor-shortcode {
    background-color: #ffffff !important;
}
.form-step {
    display: none;
}

.form-step-active {
    display: block;
}

/* Custom radio button styling */
.image-radio-input {
    display: none;
}

.image-radio-label {
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    padding: 0.5rem;
    display: block;
}

/* Image constraints for all cards */
.image-radio-label img {
    max-width: 120px !important;
    width: 120px !important;
    margin: 0 auto;
}

/* Text spans in image cards */
.image-radio-label span {
    border: 2px solid #E6E6E6;
    border-radius: 100px;
    padding: 8px 16px;
    display: inline-block;
    transition: all 0.2s ease-in-out;
    margin-top: 8px;
}

.image-radio-input:checked + .image-radio-label span {
    border-color: #0d577c !important;
    background-color: #f0f9ff;
}

/* Hide radio inputs */
.option-radio-input {
    display: none;
}

/* Style radio labels to look like buttons */
.option-radio-label {
    border: 2px solid #E6E6E6;
    transition: all 0.2s ease-in-out;
    background-color: white;
    color: #003356;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    text-align: center;
    font-weight: 500;
    display: inline-block;
}

.option-radio-label:hover {
    background-color: #f9fafb;
}

/* Selected state for radio labels */
.option-radio-input:checked + .option-radio-label {
    border-color: #0d577c;
    background-color: #f0f9ff;
    color: #0d577c;
}

/* Legacy button support (in case any remain) */
.option-button {
    border: 2px solid #E6E6E6;
    transition: all 0.2s ease-in-out;
    background-color: white;
    color: #003356;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    cursor: pointer;
    text-align: center;
    font-weight: 500;
}

.option-button:hover {
    background-color: #f9fafb;
}

.option-button-selected {
    border-color: #0d577c;
    background-color: #f0f9ff;
    color: #0d577c;
}

/* Responsive grid adjustments */
@media (max-width: 768px) {
    .calculadora-tomazelli-wrapper {
        padding: 0.5rem;
    }
    
    .calculadora-tomazelli-wrapper > div {
        padding: 1rem;
    }
    
    .grid.grid-cols-2.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .grid.grid-cols-2.sm\\:grid-cols-3.md\\:grid-cols-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    .grid.grid-cols-2.sm\\:grid-cols-3.md\\:grid-cols-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .grid.grid-cols-2.md\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    
    .grid.grid-cols-2.sm\\:grid-cols-3.md\\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Progress bar animation */
#progressBar {
    transition: width 0.3s ease-in-out;
}

/* Button hover effects */
#nextBtn:hover,
#prevBtn:hover {
    opacity: 0.9;
}

/* Form input focus styles */
input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #0d577c !important;
    background-color: white;
}

/* Area input specific styling */
input[name="area"] {
    background-color: white;
    border-radius: 100px !important;
}

input[name="area"]:focus {
    border-color: #0d577c !important;
}

/* Hide number input arrows on webkit browsers to avoid overlap */
input[name="area"]::-webkit-outer-spin-button,
input[name="area"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Hide number input arrows on Firefox */
input[name="area"][type="number"] {
    -moz-appearance: textfield;
}

/* Responsive area input */
@media (max-width: 480px) {
    input[name="area"] {
        width: 320px !important;
        max-width: 320px !important;
    }
}

/* Loading state for form submission */
.calculadora-loading {
    opacity: 0.7;
    pointer-events: none;
}

.calculadora-loading #nextBtn {
    background-color: #9ca3af !important;
    cursor: not-allowed;
}

/* Success/Error messages */
.calculadora-message {
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
    text-align: center;
    font-weight: 500;
}

.calculadora-message.success {
    background-color: #d1fae5;
    border: 1px solid #10b981;
    color: #065f46;
}

.calculadora-message.error {
    background-color: #fee2e2;
    border: 1px solid #ef4444;
    color: #991b1b;
}

/* Hide elements when needed */
.calculadora-hidden {
    display: none !important;
}