/* Estilos específicos para la página de confirmación */
.confirmation-hero {
    background-color: #000;
    color: #fff;
    padding: 80px 0 40px;
    text-align: center;
}

.confirmation-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
}

.confirmation-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #d4af37;
}

.confirmation-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
}

.confirmation-content {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 60vh;
}

.confirmation-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.confirmation-id-box {
    background-color: #f0f4f8;
    border: 2px dashed #d4af37;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    margin-bottom: 30px;
}

.confirmation-id-label {
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #666;
    margin-bottom: 5px;
}

.confirmation-id-value {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
}

.details-grid {
    display: grid;
    /* Usar 1fr para ambas columnas para que compartan el espacio disponible equitativamente */
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
    /* Asegurar que el grid no se desborde */
    width: 100%;
    overflow: hidden;
}

.detail-group h3 {
    font-size: 1.1rem;
    color: #d4af37;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.detail-item {
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.detail-label {
    font-weight: 500;
    color: #555;
}

.detail-value {
    color: #333;
    text-align: right;
}

.actions-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn-print {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-home {
    background-color: #d4af37;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: 500;
}

/* Estilos para la imagen de la unidad en la confirmación */
.image-container-col {
    /* Remover min-width y max-width fijos, dejar que el grid lo maneje */
    /* min-width: 400px; */
    /* max-width: 600px; */
    padding: 20px;
    /* Mantener el padding que estaba en el HTML */
    box-sizing: border-box;
    /* Asegurar que el padding no aumente el tamaño total */
    /* Asegurar que el contenedor use el espacio asignado por el grid */
    width: 100%;
}

.confirmation-vehicle-image {
    max-width: 80%;
    /* Ajusta este valor para reducir el tamaño de la imagen */
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 20px;
}

@media print {

    .actions-row,
    header,
    footer,
    .confirmation-hero {
        display: none;
    }

    .confirmation-content {
        background: white;
        padding: 0;
    }

    .confirmation-card {
        box-shadow: none;
        padding: 0;
    }
}

/* Utility classes for inline elements in confirmation.php */
.flex-item-centered {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.logo-confirmation {
    height: 60px;
    width: auto;
    opacity: 0.9;
}

.id-container {
    text-align: left;
    border-left: 2px solid #ddd;
    padding-left: 20px;
}

.id-label {
    display: block;
    margin-bottom: 5px;
}

.id-value {
    display: block;
    line-height: 1;
}

.capitalize {
    text-transform: capitalize;
}

.status-paid {
    color: green;
    font-weight: bold;
}

.total-border {
    margin-top: 15px;
    border-top: 1px dashed #ddd;
    padding-top: 10px;
}

.label-lg {
    font-size: 1.1rem;
    color: #333;
}

.value-lg {
    font-size: 1.1rem;
    font-weight: 700;
}

.center-img-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-title {
    color: #e53e3e;
}

.return-home-btn {
    margin-top: 20px;
    display: inline-block;
}

.text-center-sm {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 20px;
}

.padding-top-lg {
    text-align: center;
    padding-top: 100px;
}

/* --- MODERN CONFIRMATION STYLES (Used in /en version) --- */

.confirmation-main {
    padding: 60px 0;
    background-color: #f7fafc;
    min-height: 80vh;
}

.success-header {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.success-checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 2;
    stroke: #4bb543;
    stroke-miterlimit: 10;
    box-shadow: inset 0px 0px 0px #4bb543;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.success-checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 2;
    stroke-miterlimit: 10;
    stroke: #4bb543;
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.success-checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 40px #fff;
    }
}

.confirmation-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    margin-top: 10px;
}

.confirmation-details {
    background: #f8fafc;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 40px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-row .detail-value.highlight {
    font-weight: 700;
    color: #1e375a;
}

.status-success {
    color: #38a169;
    font-weight: 600;
}

.detail-info-box {
    margin-top: 20px;
    padding: 15px;
    background: #ebf8ff;
    border-left: 4px solid #3182ce;
    border-radius: 4px;
    font-size: 0.95rem;
    color: #2c5282;
}

.next-steps {
    margin-top: 40px;
}

.steps-title {
    font-size: 1.25rem;
    color: #2d3748;
    margin-bottom: 20px;
    font-weight: 600;
}

.steps-list {
    list-style: none;
    padding: 0;
}

.steps-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.step-num {
    width: 28px;
    height: 28px;
    background: #1e375a;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-text {
    font-size: 1rem;
    color: #4a5568;
    line-height: 1.5;
}

.confirmation-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
    justify-content: center;
    border-top: 1px solid #edf2f7;
    padding-top: 30px;
}

.btn-primary-confirm,
.btn-secondary-confirm {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
}

.btn-primary-confirm {
    background: #1e375a;
    color: white;
}

.btn-primary-confirm:hover {
    background: #d4af37;
    transform: translateY(-2px);
}

.btn-secondary-confirm {
    background: #edf2f7;
    color: #2d3748;
}

.btn-secondary-confirm:hover {
    background: #e2e8f0;
}

.whatsapp-support {
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

.whatsapp-support span {
    display: block;
    margin-bottom: 10px;
    color: #718096;
    font-size: 0.9rem;
}

.wa-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #25d366;
    font-weight: 600;
    text-decoration: none;
}

.wa-link:hover {
    text-decoration: underline;
}