/* Tailwind CSS se carga desde CDN en app.blade.php */

@font-face {
    font-family: 'ChevySans';
    src: url('../../fonts/ChevySans-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@layer base {
    body {
        font-family: 'ChevySans', sans-serif;
        background-color: #fff;
    }
}

/* ============================================
   ESTILOS GENÉRICOS PARA PARTIALS
   Estilos básicos que se aplican a todos los layouts
   ============================================ */

/* Estilos genéricos para field-group */
.field-group {
    position: relative;
    width: 100%;
}

/* Estilos genéricos para field-label */
.field-label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

/* Estilos genéricos para field-input */
.field-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    color: #333;
    font-size: 1rem;
    font-weight: 400;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
}

.field-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.field-input::placeholder {
    color: #999;
    opacity: 0.7;
}

/* Estilos genéricos para field-error */
.field-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

/* Estilos genéricos para field-help */
.field-help {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    color: #666;
}

/* Estilos genéricos para checkboxes */
.field-group input[type="checkbox"] {
    margin-right: 0.5rem;
}

.field-group .checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.step-circle-active {
    font-weight: 500;
    font-size: 12px;
    color: #FFFFFF;
    background: #61AF71;
    border: 1.5px solid #61AF71;
}

.step-circle-inactive {
    font-weight: 500;
    font-size: 12px;
    color: #B3B3B3;
    box-sizing: border-box;
    border: 1.5px solid #B3B3B3;
}

/* Colores personalizados */
.text-step-active {
    color: #707070;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
}

.text-step-inactive {
    color: #B3B3B3;
    font-weight: 600;
    font-size: 14px;
    line-height: 140%;
    text-align: center;
}

.line-between-steps {
    color: #B3B3B3;
}

.step-title {
    font-weight: 600;
    line-height: 120%;
    color: #8C8C8C;
}

.black-text {
    color: #262626;
    font-weight: 600;
    line-height: 120%;
}

.gray-text {
    color: #666666;
    font-weight: 600;
    line-height: 120%;
}

.input-base {
    font-weight: 600;
    font-size: 16px;
    color: #262626;
    border-radius: 4px;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #E5E7EB;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.input-base:focus {
    border-color: var(--chevrolet-gold);
    box-shadow: 0 0 0 3px rgba(194, 155, 63, 0.1);
}

.select-base {
    font-weight: 600;
    font-size: 15px;
    color: #262626;
    border-radius: 4px;
    width: 100%;
    background-color: #ffffff;
    border: 2px solid #E5E7EB;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    outline: none;
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

.select-base:focus {
    border-color: var(--chevrolet-gold);
    box-shadow: 0 0 0 3px rgba(194, 155, 63, 0.1);
}

/* Mejorar la apariencia del dropdown del select */
select.select-base option {
    padding: 8px 12px;
    font-size: 14px;
    background-color: #ffffff;
    color: #262626;
    line-height: 1.4;
}

.input-invalid {
    border-bottom-color: #ef4444 !important;
}

.input-invalid:focus {
    border-bottom-color: #ef4444 !important;
}

.input-valid {
    border-bottom-color: #d1d5db;
}

.input-valid:focus {
    border-bottom-color: #000000;
}

.card-title {
    color: #262626;
    font-weight: 700;
    font-size: 20px;
    line-height: 140%;
}

.card-period {
    font-weight: 550;
    font-size: 16px;
    line-height: 140%;
    color: #1C32F8;
}

.card-description {
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    color: #8C8C8C;
}

.card-subtitle {
    font-weight: 500;
    font-size: 14px;
    line-height: 150%;
    color: #262626;
    background-color: #1C32F81A;
    border: 0.5px solid #1C32F8;
}

.card-copy {
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    color: #707070;
}

.card-button {
    font-weight: 600;
    font-size: 16px;
    line-height: 140%;
    color: #0077D9;
}

.subtitle-response-page {
    color: #262626;
    font-weight: 500;
    line-height: 120%;
    font-size: 20px;
}

.title-response-page {
    font-weight: 600;
    line-height: 120%;
    font-size: 32px;
}

.error-color {
    color: #D64022 !important;
}

.timeout-color {
    color: #0E4180 !important;
}

.warning-color {
    color: #F16522 !important;
}

input[type="radio"]#terms {
    width: 20px;
    height: 20px;
    accent-color: black;
    border: 2px solid #666666;
    background-color: white;
    cursor: pointer;
    appearance: auto;
    border-radius: 50%;
    box-sizing: border-box;
    position: relative;
    z-index: 1;
}

#terms + label {
    font-size: 14px;
    color: #444;
    margin-left: 0.5rem;
}

#terms + label a.underline-url {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
}

.radio-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px; /* igual al input */
    height: 20px; /* igual al input */
    border-radius: 50%;
    position: relative;
    background: white;
}

@keyframes pulse-outline {
    0% {
        box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.7);
    }
    700% {
        box-shadow: 0 0 0 5px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 8px rgba(37, 99, 235, 0);
    }
}

.pulse-outline {
    animation: pulse-outline 1.2s infinite;
    border-radius: 50%;
}

.iframe-checkout {
    width: 100%;
    border: 0;
}

.btn-blue-primary {
    background-color: #0077D9;
    color: #fff;
    transition: background-color 0.3s ease;
}

.btn-blue-primary:hover {
    background-color: #0E4180;
}
.btn-black-text-blue {
    border-color: #0077D9;
    color: #0077D9;
}

.btn-black-text-blue:hover {
    border-color: #0E4180;
    background-color: #0E4180;
    color: #FFFFFF;
}

/* ============================================
   ESTILOS DE FORMA PARA CHECKBOX - TÉRMINOS Y CONDICIONES
   Estilos genéricos de forma que se aplican a todos los layouts
   ============================================ */

/* Estructura básica del checkbox */
.terms-and-conditions {
    width: 100% !important;
    grid-column: 1 / -1 !important;
}

.terms-container {
    display: flex !important;
    justify-content: flex-end !important;
    width: 100% !important;
}

.checkbox-option {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    padding: 0 !important;
    border: none !important;
    background-color: transparent !important;
    margin-left: auto !important;
    transition: color 0.2s ease !important;
}

.checkbox-input {
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Forma del checkbox - Circular */
.checkbox-custom {
    width: 24px !important;
    height: 24px !important;
    border: 1px solid #333 !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.25s ease !important;
    box-shadow: none !important;
    position: relative !important;
}

/* SVG Checkmark */
.checkbox-custom svg {
    position: absolute !important;
    width: 12px !important;
    height: 9px !important;
    top: 7px !important;
    left: 5px !important;
    fill: none !important;
    stroke: #fff !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    stroke-dasharray: 16px !important;
    stroke-dashoffset: 16px !important;
    transition: all 0.3s ease !important;
    transition-delay: 0.1s !important;
    transform: translate3d(0, 0, 0) !important;
}

/* Estado checked - solo forma */
.checkbox-option:has(.checkbox-input:checked) .checkbox-custom {
    box-shadow: none !important;
    animation: checkbox-pop 0.25s ease !important;
}

.checkbox-option:has(.checkbox-input:checked) .checkbox-custom svg {
    stroke-dashoffset: 0 !important;
}

/* Label del checkbox */
.checkbox-label {
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap !important;
}

/* Estados disabled - solo forma */
.checkbox-option.checkbox-disabled {
    cursor: not-allowed !important;
    opacity: 0.65 !important;
}

/* El label mantiene su color normal incluso cuando está disabled */
.checkbox-option.checkbox-disabled .checkbox-label {
    opacity: 1 !important; /* El label no se atenúa */
}

.checkbox-option.checkbox-disabled:has(.checkbox-input:checked) .checkbox-custom {
    box-shadow: none !important;
}

.checkbox-option.checkbox-disabled:has(.checkbox-input:checked) .checkbox-custom::after {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
}

.checkbox-custom.checkbox-disabled {
    box-shadow: none !important;
    animation: none !important;
}

.checkbox-custom.checkbox-disabled::after {
    border-right-color: transparent !important;
    border-bottom-color: transparent !important;
    transform: scale(0) rotate(45deg) !important;
}

/* Animaciones */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.7);
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(0, 0, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
        transform: scale(1);
    }
}

@keyframes checkbox-pop {
    0% { transform: scale(0.85); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* ========================================
   THANK YOU PAGE STYLES (SHARED)
   ======================================== */

/* Estilos para la thank you page inline */
.visid-thank-you {
    padding: 2rem;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.visid-thank-you .visid-header {
    margin-bottom: 2rem;
}

.visid-thank-you .visid-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.visid-thank-you .visid-content {
    margin-bottom: 2rem;
}

.visid-thank-you .visid-form-data {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: left;
}

.visid-thank-you .visid-form-data h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.visid-thank-you .visid-form-data ul {
    list-style: none;
    padding: 0;
}

.visid-thank-you .visid-form-data li {
    margin-bottom: 0.25rem;
    color: #666;
}

.visid-thank-you .visid-thank-you-actions {
    margin-top: 2rem;
}

.visid-thank-you .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.visid-thank-you .btn-secondary {
    background-color: #6c757d;
    color: white;
}

.visid-thank-you .btn-secondary:hover {
    background-color: #5a6268;
}

/* Estilos específicos para retail.blade.php */
.ty-container {
    text-align: center;
    margin: 0 auto;
    max-width: 1000px;
    padding: 50px 0;
}

.ty-h1 {
    margin: 25px 10px 30px 10px;
    font-size: 20px;
    font-weight: 700;
    line-height: 26px;
    font-family: 'ChevySans', Arial, sans-serif;
    color: #615e5e;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ty-h3 {
    margin: 0 10px 10px 10px;
    font-size: 26px;
    line-height: 29px;
    font-family: 'ChevySans', Arial, sans-serif;
    color: #383838;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.ty-p {
    margin: 12px 10px 20px 10px;
    font-size: 18px;
    line-height: 20px;
    font-family: 'ChevySans', Arial, sans-serif;
    color: #615e5e;
}

.yellow {
    color: #e0a324;
}

.model-name {
    color: #b6862d;
    letter-spacing: 1px;
    font-size: 26px;
    line-height: 28px;
    font-weight: 700;
    text-transform: uppercase;
}

@media screen and (min-width: 600px) {
    .ty-h3 {
        font-size: 29px;
        line-height: 32px;
    }
    .ty-p {
        font-size: 17px;
        line-height: 17px;
    }
}

/* ========================================
   TRANSICIONES PARA THANK YOU PAGE
   ======================================== */

/* Transición suave para el formulario */
.visid-container form {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Transición suave para la thank you page */
.visid-container .visid-thank-you {
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

/* Estado inicial de la thank you page (oculta) */
.visid-container .visid-thank-you[x-cloak] {
    opacity: 0;
    transform: translateY(20px);
}

/* Estado visible de la thank you page */
.visid-container .visid-thank-you:not([x-cloak]) {
    opacity: 1;
    transform: translateY(0);
}

/* Estado oculto del formulario */
.visid-container form[style*="display: none"] {
    opacity: 0;
    transform: translateY(-20px);
}
