/* LABA INEO SIGN - Modern Form Styles */

/* Container principale */
.ineo-sign-form-container {
    max-width: 1100px;
    margin: 2rem auto;
    padding: 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Messaggi di successo/errore - Design moderno */
.ineo-sign-message {
    background: #ffffff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ineo-message-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
}

.ineo-sign-message-success .ineo-message-icon {
    background: #d1fae5;
    color: #10b981;
}

.ineo-sign-message-error .ineo-message-icon {
    background: #fee2e2;
    color: #ef4444;
}

.ineo-message-icon svg {
    width: 24px;
    height: 24px;
}

.ineo-message-content {
    flex: 1;
}

.ineo-message-content h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.ineo-sign-message-success .ineo-message-content h3 {
    color: #065f46;
}

.ineo-sign-message-error .ineo-message-content h3 {
    color: #991b1b;
}

.ineo-message-content p {
    margin: 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}

/* Form principale */
.ineo-sign-form {
    background: #ffffff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: block;
    position: relative;
    min-height: 0;
}

/* Assicurati che gli step nascosti non occupino spazio nel form */
.ineo-sign-form > .ineo-step:not([style*="display: block"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

/* Forza lo step 2a a essere completamente nascosto quando non è visibile */
.ineo-sign-form > .ineo-step[data-step="2a"]:not([style*="display: block"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Nascondi anche tutti gli elementi interni dello step 2a quando nascosto */
.ineo-sign-form > .ineo-step[data-step="2a"]:not([style*="display: block"]) * {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
}

/* Assicurati che lo step 2a non crei spazio anche quando ha style="display: none" inline */
.ineo-sign-form > .ineo-step[data-step="2a"][style*="display: none"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* Step container */
.ineo-step {
    animation: fadeInUp 0.4s ease-out;
    display: none !important;
    width: 100%;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Step 0 deve essere visibile di default */
.ineo-step[data-step="0"]:not([style*="display: none"]) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 1.25rem !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.ineo-step[style*="display: block"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
    position: relative !important;
    left: auto !important;
    top: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Nascondi completamente lo step 2a quando non è visibile */
.ineo-step[data-step="2a"]:not([style*="display: block"]) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* Nascondi anche il contenuto interno dello step 2a quando nascosto */
.ineo-step[data-step="2a"]:not([style*="display: block"]) #ineo-cf-calculator-inline,
.ineo-step[data-step="2a"][style*="display: none"] #ineo-cf-calculator-inline {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Step header con numero step */
.ineo-step-header {
    text-align: right;
    margin-bottom: 0.75rem;
}

.ineo-step-number {
    font-size: 0.625rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

/* Titolo step */
.ineo-step-header h3,
.ineo-step h3 {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
    border: none;
    padding: 0;
    text-align: right;
}

.ineo-step-header h3 {
    margin-bottom: 0;
}

.ineo-step-description {
    color: #6b7280;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* Form groups */
.ineo-form-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.875rem;
}

.ineo-form-group:last-child {
    margin-bottom: 0;
}

.ineo-field-hint {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Labels per input normali */
.ineo-form-group > label:not(:has(input[type="radio"])):not(:has(input[type="checkbox"])) {
    font-weight: 600;
    color: #374151;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
    display: block;
}

.ineo-form-group .required {
    color: #ef4444;
    margin-left: 2px;
}

/* Input fields */
.ineo-form-group input[type="text"],
.ineo-form-group input[type="email"],
.ineo-form-group input[type="tel"],
.ineo-form-group input[type="date"] {
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #111827;
    background: #ffffff;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ineo-form-group input[type="text"]:focus,
.ineo-form-group input[type="email"]:focus,
.ineo-form-group input[type="tel"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ineo-form-group input[type="text"]:hover,
.ineo-form-group input[type="email"]:hover,
.ineo-form-group input[type="tel"]:hover {
    border-color: #d1d5db;
}

/* Phone wrapper */
.ineo-phone-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.ineo-phone-prefix {
    flex: 0 0 auto;
    min-width: 150px;
    padding: 0.4375rem 0.625rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.75rem;
    font-family: inherit;
    background-color: #ffffff;
    color: #111827;
    cursor: pointer;
    transition: all 0.2s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23374151' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.75rem;
}

.ineo-phone-prefix:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ineo-phone-prefix:hover {
    border-color: #d1d5db;
}

.ineo-phone-number {
    flex: 1;
    padding: 0.4375rem 0.625rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-family: inherit;
    color: #111827;
    transition: all 0.2s ease;
}

.ineo-phone-number:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.ineo-phone-number:hover {
    border-color: #d1d5db;
}

/* Radio e Checkbox labels */
.ineo-form-group label:has(input[type="radio"]),
.ineo-form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
    background: #ffffff;
    font-weight: 500;
    font-size: 0.6875rem;
    color: #374151;
    margin-bottom: 0.375rem;
}

.ineo-form-group label:has(input[type="radio"]):hover,
.ineo-form-group label:has(input[type="checkbox"]):hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.ineo-form-group input[type="radio"],
.ineo-form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #3b82f6;
    flex-shrink: 0;
}

.ineo-form-group label:has(input[type="radio"]:checked),
.ineo-form-group label:has(input[type="checkbox"]:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1e40af;
}

.ineo-form-group label:has(input[type="radio"]:checked) span,
.ineo-form-group label:has(input[type="checkbox"]:checked) span {
    font-weight: 600;
    color: #1e40af;
}

/* Buttons */
.ineo-next-btn,
.ineo-prev-btn,
.ineo-submit-btn {
    padding: 0.5rem 1.25rem;
    border: none;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
}

.ineo-next-btn,
.ineo-submit-btn {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.ineo-next-btn:hover,
.ineo-submit-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.ineo-next-btn:active,
.ineo-submit-btn:active {
    transform: translateY(0);
}

.ineo-prev-btn {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.ineo-prev-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

/* Button container */
.ineo-form-group:has(.ineo-next-btn),
.ineo-form-group:has(.ineo-prev-btn),
.ineo-form-group:has(.ineo-submit-btn) {
    flex-direction: row;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* Button group con più pulsanti */
.ineo-form-group-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    margin-bottom: 0;
}

.ineo-form-group-buttons .ineo-prev-btn {
    margin-right: auto;
}

.ineo-form-group-buttons .ineo-next-btn,
.ineo-form-group-buttons .ineo-success-btn {
    margin-left: auto;
}

/* Summary */
.ineo-summary {
    background: #f9fafb;
    padding: 1.25rem;
    border-radius: 10px;
    margin-bottom: 1.25rem;
    border: 2px solid #e5e7eb;
}

.ineo-summary p {
    margin: 0.5rem 0;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    line-height: 1.5;
}

.ineo-summary p:first-child {
    margin-top: 0;
    padding-top: 0;
}

.ineo-summary p:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ineo-summary strong {
    color: #3b82f6;
    font-weight: 600;
    margin-right: 0.5rem;
    display: inline-block;
    min-width: 140px;
}

/* Error message */
#ineo-notification-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    padding: 0.75rem 1rem;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .ineo-sign-form-container {
        margin: 1.5rem 1rem;
    }
    
    .ineo-sign-form {
        padding: 1.5rem;
    }
    
    .ineo-step h3 {
        font-size: 1.5rem;
    }
    
    .ineo-form-group:has(.ineo-next-btn),
    .ineo-form-group:has(.ineo-prev-btn),
    .ineo-form-group:has(.ineo-submit-btn) {
        flex-direction: column;
    }
    
    .ineo-next-btn,
    .ineo-prev-btn,
    .ineo-submit-btn {
        width: 100%;
        margin-right: 0;
    }
    
    .ineo-phone-wrapper {
        flex-direction: column;
    }
    
    .ineo-phone-prefix {
        min-width: 100%;
        width: 100%;
    }
    
    .ineo-phone-number {
        width: 100%;
    }
    
    .ineo-summary strong {
        min-width: auto;
        display: block;
        margin-bottom: 0.25rem;
    }
}

/* Overlay di successo con blur */
.ineo-sign-form-container.ineo-success-overlay-active {
    position: relative;
}

.ineo-sign-form-container.ineo-success-overlay-active .ineo-sign-form {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease;
}

.ineo-success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeInOverlay 0.4s ease-out;
    padding: 2rem;
    box-sizing: border-box;
}

@keyframes fadeInOverlay {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.ineo-success-overlay-content {
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
    position: relative;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ineo-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #10b981;
    animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.ineo-success-icon svg {
    width: 48px;
    height: 48px;
}

.ineo-success-title {
    margin: 0 0 1rem 0;
    font-size: 2rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.ineo-success-message {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #065f46;
}

.ineo-success-description {
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
}

.ineo-success-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.ineo-success-btn {
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
}

.ineo-success-btn-primary {
    background: #3b82f6;
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.ineo-success-btn-primary:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    color: #ffffff;
    text-decoration: none;
}

.ineo-success-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.ineo-success-btn-secondary:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .ineo-success-overlay {
        padding: 1rem;
    }
    
    .ineo-success-overlay-content {
        padding: 2rem 1.5rem;
    }
    
    .ineo-success-title {
        font-size: 1.75rem;
    }
    
    .ineo-success-buttons {
        flex-direction: column;
    }
    
    .ineo-success-btn {
        width: 100%;
    }
}

/* Placeholder per stranieri */
.ineo-foreign-placeholder-content {
    text-align: center;
    padding: 2rem 0;
}

.ineo-foreign-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: #fef3c7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f59e0b;
    animation: scaleIn 0.5s ease-out;
}

.ineo-foreign-icon svg {
    width: 48px;
    height: 48px;
}

.ineo-foreign-message {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.ineo-foreign-description {
    margin: 0 0 2rem 0;
    font-size: 0.95rem;
    color: #6b7280;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Calcolatore Codice Fiscale */
.ineo-tax-code-wrapper {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.ineo-tax-code-wrapper input {
    flex: 1;
}

.ineo-calculate-cf-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4375rem 0.75rem;
    background: #f3f4f6;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    font-size: 0.6875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
}

.ineo-calculate-cf-btn:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    transform: translateY(-1px);
}

.ineo-calculate-cf-btn svg {
    flex-shrink: 0;
}

/* Blur del form quando il calcolatore è aperto */
.ineo-sign-form-container.ineo-cf-calculator-active {
    position: relative;
}

.ineo-sign-form-container.ineo-cf-calculator-active .ineo-sign-form {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    transition: filter 0.3s ease;
}

/* Overlay Calcolatore CF */
.ineo-cf-calculator-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 2rem;
    box-sizing: border-box;
    animation: fadeInOverlay 0.3s ease-out;
    overflow-y: auto;
}

.ineo-cf-calculator-content {
    background: #ffffff;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.4s ease-out;
    position: relative;
    margin: auto;
}

.ineo-cf-calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 2px solid #f3f4f6;
    background: linear-gradient(to right, #f9fafb, #ffffff);
}

.ineo-cf-calculator-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ineo-cf-calculator-header h3::before {
    content: '🧮';
    font-size: 1.5rem;
}

.ineo-cf-calculator-close {
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    padding: 0.625rem;
    cursor: pointer;
    color: #6b7280;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.ineo-cf-calculator-close:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
    color: #111827;
    transform: scale(1.05);
}

.ineo-cf-calculator-body {
    padding: 1.25rem;
}

.ineo-cf-calculator-body .ineo-form-group {
    margin-bottom: 1rem;
}

.ineo-cf-calculator-body .ineo-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #374151;
    font-size: 0.95rem;
}

.ineo-cf-calculator-body .ineo-form-group input[type="text"],
.ineo-cf-calculator-body .ineo-form-group input[type="date"],
.ineo-cf-calculator-body .ineo-form-group select {
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border: 1.5px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.8125rem;
    transition: all 0.2s ease;
    background: #ffffff;
}

.ineo-cf-calculator-body .ineo-form-group select {
    cursor: pointer;
}

.ineo-cf-calculator-body .ineo-form-group input[readonly] {
    background: #f9fafb;
    cursor: not-allowed;
    color: #6b7280;
}

.ineo-cf-calculator-body .ineo-form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ineo-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.ineo-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: 500;
}

.ineo-radio-group input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.ineo-cf-calculator-result {
    background: #d1fae5;
    border: 2px solid #10b981;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    text-align: center;
}

.ineo-cf-result-label {
    font-size: 0.9rem;
    color: #065f46;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ineo-cf-result-code {
    font-size: 1.5rem;
    font-weight: 700;
    color: #047857;
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.ineo-cf-calculator-error {
    background: #fee2e2;
    border: 2px solid #ef4444;
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    color: #991b1b;
    font-size: 0.9rem;
    line-height: 1.5;
}

.ineo-cf-calculator-error input {
    margin-top: 0.5rem;
    padding: 0.625rem;
    border: 2px solid #dc2626;
    border-radius: 6px;
    font-size: 0.95rem;
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    letter-spacing: 1px;
}

.ineo-cf-calculator-error input:focus {
    outline: none;
    border-color: #991b1b;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

@media (max-width: 768px) {
    .ineo-tax-code-wrapper {
        flex-direction: column;
    }
    
    .ineo-calculate-cf-btn {
        width: 100%;
        justify-content: center;
    }
    
    .ineo-cf-calculator-overlay {
        padding: 1rem;
    }
    
    .ineo-cf-calculator-content {
        max-height: 95vh;
    }
    
    .ineo-cf-calculator-header {
        padding: 1.25rem 1.5rem;
    }
    
    .ineo-cf-calculator-body {
        padding: 1.5rem;
    }
    
    .ineo-radio-group {
        flex-direction: column;
        gap: 1rem;
    }
}
