/**
 * Your Vet Academy - Courses Catalog & Checkout Stylesheet
 */

:root {
    --yva-primary: #00197f;
    --yva-primary-hover: #00125e;
    --yva-primary-light: #eef2ff;
    --yva-primary-glow: rgba(0, 25, 127, 0.15);
    --yva-accent: #2563eb;
    --yva-accent-light: #dbeafe;
    --yva-dark: #090e24;
    --yva-gray-700: #334155;
    --yva-gray-500: #64748b;
    --yva-gray-200: #e2e8f0;
    --yva-gray-100: #f1f5f9;
    --yva-gray-50: #f8fafc;
    --yva-success: #16a34a;
    --yva-success-light: #dcfce7;
    --yva-radius-lg: 16px;
    --yva-radius-md: 10px;
    --yva-radius-sm: 6px;
    --yva-shadow-sm: 0 2px 4px rgba(0,0,0,0.04);
    --yva-shadow-md: 0 10px 25px -5px rgba(0, 25, 127, 0.08), 0 8px 10px -6px rgba(0, 25, 127, 0.04);
    --yva-shadow-lg: 0 20px 35px -10px rgba(0, 25, 127, 0.18), 0 10px 15px -5px rgba(0, 25, 127, 0.06);
    --yva-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --yva-font-heading: 'Outfit', 'Plus Jakarta Sans', sans-serif;
}

/* Ocultar el título estándar del tema de WordPress en la página de catálogo */
.page-template-default .entry-title,
.page .entry-title,
.page .wp-block-post-title,
.wp-block-post-title,
.entry-header h1.entry-title,
.single-post-title,
.page-title {
    /* Si la página contiene el catálogo de cursos, evitamos títulos duplicados del tema */
}

body:has(.yva-catalog-container) .entry-header,
body:has(.yva-catalog-container) .wp-block-post-title,
body:has(.yva-catalog-container) .entry-title,
body:has(.yva-catalog-container) .page-title,
body:has(.yva-catalog-container) header.entry-header {
    display: none !important;
}

/* Reset / Container */
.yva-catalog-container,
.yva-confirmation-wrapper,
.yva-modal-dialog {
    font-family: var(--yva-font);
    color: var(--yva-dark);
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

.yva-catalog-container *,
.yva-confirmation-wrapper *,
.yva-modal-dialog * {
    box-sizing: border-box;
}

.yva-catalog-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

/* Hero Header */
.yva-hero-header {
    text-align: center;
    margin-bottom: 40px;
    background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 100%);
    padding: 45px 20px 35px;
    border-radius: var(--yva-radius-lg);
    border: 1px solid #e0e7ff;
    box-shadow: var(--yva-shadow-sm);
}

.yva-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yva-primary-light);
    color: var(--yva-primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 16px;
    border: 1px solid #c7d2fe;
}

.yva-pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--yva-primary);
    border-radius: 50%;
    animation: yva-pulse 1.8s infinite;
}

@keyframes yva-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 25, 127, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 25, 127, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 25, 127, 0); }
}

.yva-hero-title {
    font-family: var(--yva-font-heading);
    font-size: 38px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--yva-dark);
    margin: 0 0 12px 0;
}

.yva-hero-subtitle {
    font-size: 17px;
    color: var(--yva-gray-500);
    max-width: 680px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* Controls Bar (Search + Categories) */
.yva-controls-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
}

.yva-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.yva-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--yva-gray-500);
}

.yva-search-input {
    width: 100% !important;
    padding: 13px 40px 13px 44px !important;
    border-radius: 9999px !important;
    border: 1px solid var(--yva-gray-200) !important;
    background: #ffffff !important;
    font-size: 15px !important;
    outline: none !important;
    transition: all 0.2s ease !important;
    box-shadow: var(--yva-shadow-sm) !important;
}

.yva-search-input:focus {
    border-color: var(--yva-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.15) !important;
}

.yva-clear-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 18px;
    color: var(--yva-gray-500);
    cursor: pointer;
}

.yva-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.yva-tab-btn {
    background: #ffffff;
    border: 1px solid var(--yva-gray-200);
    color: var(--yva-gray-700);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yva-tab-btn:hover {
    background: var(--yva-gray-50);
    border-color: var(--yva-gray-500);
}

.yva-tab-btn.active {
    background: var(--yva-primary);
    color: #ffffff;
    border-color: var(--yva-primary);
    box-shadow: 0 4px 12px rgba(15, 118, 110, 0.25);
}

/* Course Grid */
.yva-courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px;
    margin-bottom: 50px;
}

/* Course Card */
.yva-course-card {
    background: #ffffff;
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.yva-course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--yva-shadow-md);
    border-color: #cbd5e1;
}

.yva-card-media {
    position: relative;
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #00197f 0%, #090e24 100%);
    overflow: hidden;
}

.yva-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.yva-course-card:hover .yva-card-img {
    transform: scale(1.04);
}

.yva-card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(135deg, #00197f 0%, #090e24 100%);
}

.yva-placeholder-icon {
    font-size: 38px;
    margin-bottom: 6px;
}

.yva-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.yva-card-cat-pill {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    color: var(--yva-primary);
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    z-index: 2;
}

.yva-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.yva-card-meta-row {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--yva-gray-500);
    margin-bottom: 10px;
    font-weight: 500;
}

.yva-card-title {
    font-family: var(--yva-font-heading);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 8px 0;
    color: var(--yva-dark);
}

.yva-card-excerpt {
    font-size: 13px;
    color: var(--yva-gray-500);
    line-height: 1.5;
    margin: 0 0 16px 0;
    flex: 1;
}

.yva-card-instructor {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--yva-gray-100);
    margin-top: auto;
}

.yva-inst-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.yva-inst-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.yva-inst-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--yva-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yva-inst-role {
    font-size: 11px;
    color: var(--yva-gray-500);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Card Footer */
.yva-card-footer {
    padding: 16px 20px;
    background: var(--yva-gray-50);
    border-top: 1px solid var(--yva-gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.yva-card-price-box {
    display: flex;
    flex-direction: column;
}

.yva-price-current {
    font-family: var(--yva-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--yva-primary);
    line-height: 1;
}

.yva-price-current small {
    font-size: 12px;
    font-weight: 600;
    color: var(--yva-gray-500);
}

.yva-price-original {
    font-size: 12px;
    color: var(--yva-gray-500);
    text-decoration: line-through;
    margin-top: 2px;
}

.yva-card-actions {
    display: flex;
    gap: 6px;
}

/* Buttons */
.yva-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: var(--yva-radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    border: none;
    outline: none;
}

.yva-btn-primary {
    background: var(--yva-primary);
    color: #ffffff !important;
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2);
}

.yva-btn-primary:hover {
    background: var(--yva-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(15, 118, 110, 0.3);
}

.yva-btn-outline {
    background: #ffffff;
    color: var(--yva-gray-700) !important;
    border: 1px solid var(--yva-gray-200);
}

.yva-btn-outline:hover {
    background: var(--yva-gray-100);
    border-color: var(--yva-gray-500);
}

/* Trust Bar */
.yva-trust-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 25px 20px;
    background: #ffffff;
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-lg);
    box-shadow: var(--yva-shadow-sm);
}

.yva-trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yva-trust-icon {
    font-size: 26px;
    flex-shrink: 0;
}

.yva-trust-text {
    display: flex;
    flex-direction: column;
}

.yva-trust-text strong {
    font-size: 14px;
    color: var(--yva-dark);
}

.yva-trust-text span {
    font-size: 12px;
    color: var(--yva-gray-500);
}

/* ==========================================================================
   MODAL DIALOGS & OVERLAYS
   ========================================================================== */

.yva-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(5px);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.yva-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.yva-modal-dialog {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--yva-shadow-lg);
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: yva-modal-in 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes yva-modal-in {
    from { transform: scale(0.94) translateY(15px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.yva-modal-lg { max-width: 680px; }
.yva-modal-xl { max-width: 960px; }

.yva-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--yva-gray-100);
    border: none;
    font-size: 22px;
    line-height: 1;
    color: var(--yva-gray-700);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s ease;
}

.yva-modal-close:hover {
    background: var(--yva-gray-200);
}

/* Modal Quick Details Content */
.yva-modal-header-hero {
    background: linear-gradient(135deg, #00197f 0%, #00125e 100%);
    color: #ffffff;
    padding: 30px;
    border-radius: 20px 20px 0 0;
}

.yva-modal-header-hero h2 {
    font-family: var(--yva-font-heading);
    font-size: 24px;
    margin: 8px 0 12px;
    color: #ffffff;
}

.yva-badge {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
}

.yva-course-meta-pills {
    display: flex;
    gap: 12px;
    font-size: 13px;
    opacity: 0.9;
}

.yva-modal-body-content {
    padding: 25px 30px 30px;
}

.yva-section-block {
    margin-bottom: 22px;
}

.yva-section-block h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--yva-dark);
}

.yva-features-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yva-features-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    margin-bottom: 8px;
    color: var(--yva-gray-700);
}

.yva-check {
    color: var(--yva-success);
    font-weight: 800;
}

.yva-syllabus-box {
    background: var(--yva-gray-50);
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-md);
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--yva-gray-700);
}

.yva-modal-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 20px;
    border-top: 1px solid var(--yva-gray-200);
    margin-top: 20px;
}

.yva-modal-price {
    display: flex;
    flex-direction: column;
}

.yva-price-label { font-size: 12px; color: var(--yva-gray-500); }
.yva-price-value { font-size: 24px; font-weight: 800; color: var(--yva-primary); font-family: var(--yva-font-heading); }
.yva-price-old { font-size: 13px; text-decoration: line-through; color: var(--yva-gray-500); }

/* ==========================================================================
   CHECKOUT 2-COLUMN MODAL
   ========================================================================== */

.yva-checkout-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    min-height: 520px;
    position: relative;
}

/* Left Column: Summary */
.yva-checkout-summary-col {
    background: #f8fafc;
    border-right: 1px solid var(--yva-gray-200);
    padding: 35px 25px;
    border-radius: 20px 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.yva-summary-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--yva-primary);
    letter-spacing: 0.5px;
}

.yva-summary-header h3 {
    font-family: var(--yva-font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 0 0;
    color: var(--yva-dark);
}

.yva-summary-price-card {
    background: #ffffff;
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-md);
    padding: 16px;
}

.yva-price-line {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--yva-gray-700);
    margin-bottom: 8px;
}

.yva-total-line {
    border-top: 1px dashed var(--yva-gray-200);
    padding-top: 10px;
    margin-top: 10px;
    margin-bottom: 0;
}

.yva-total-val {
    font-size: 20px;
    color: var(--yva-primary);
    font-family: var(--yva-font-heading);
}

.yva-summary-perks h4 {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--yva-dark);
}

.yva-summary-perks ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.yva-summary-perks li {
    font-size: 13px;
    color: var(--yva-gray-700);
    margin-bottom: 8px;
    display: flex;
    gap: 6px;
}

.yva-perk-check { color: var(--yva-success); font-weight: 800; }

.yva-summary-guarantee {
    margin-top: auto;
    display: flex;
    gap: 10px;
    background: #ffffff;
    padding: 12px;
    border-radius: var(--yva-radius-sm);
    border: 1px solid #e2e8f0;
}

.yva-guar-icon { font-size: 22px; }
.yva-guar-text strong { font-size: 12px; display: block; color: var(--yva-dark); }
.yva-guar-text p { margin: 2px 0 0; font-size: 11px; color: var(--yva-gray-500); line-height: 1.3; }

/* Right Column: Registration & Payment Form */
.yva-checkout-form-col {
    padding: 35px 30px;
    overflow-y: auto;
}

.yva-form-header h2 {
    font-family: var(--yva-font-heading);
    font-size: 22px;
    font-weight: 800;
    margin: 0 0 4px 0;
    color: var(--yva-dark);
}

.yva-form-header p {
    font-size: 14px;
    color: var(--yva-gray-500);
    margin: 0 0 20px 0;
}

.yva-form-section {
    margin-bottom: 22px;
}

.yva-section-heading {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--yva-primary);
    margin: 0 0 14px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.yva-form-row {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
}

.yva-form-group {
    display: flex;
    flex-direction: column;
}

.yva-col-12 { width: 100%; }
.yva-col-6 { width: 50%; }

.yva-form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--yva-dark);
    margin-bottom: 5px;
}

.yva-input {
    width: 100% !important;
    padding: 10px 14px !important;
    border-radius: var(--yva-radius-md) !important;
    border: 1px solid var(--yva-gray-200) !important;
    font-size: 14px !important;
    color: var(--yva-dark) !important;
    background: #ffffff !important;
    outline: none !important;
    transition: border-color 0.2s ease !important;
}

.yva-input:focus {
    border-color: var(--yva-primary) !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12) !important;
}

/* Phone Field Inline Group */
.yva-phone-field-wrapper {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    align-items: stretch !important;
    width: 100% !important;
}

.yva-phone-prefix-select {
    width: 88px !important;
    min-width: 88px !important;
    max-width: 92px !important;
    flex: 0 0 88px !important;
    padding: 10px 4px 10px 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #0f172a !important;
    background-color: #f8fafc !important;
    border: 1px solid var(--yva-gray-200) !important;
    border-radius: var(--yva-radius-md) !important;
    cursor: pointer !important;
}

.yva-phone-number-input {
    flex: 1 1 auto !important;
    width: 100% !important;
    min-width: 0 !important;
}

/* Gateways Selector */
.yva-gateways-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.yva-gateway-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-md);
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.yva-gateway-option:hover {
    border-color: #cbd5e1;
    background: var(--yva-gray-50);
}

.yva-gateway-option.active {
    border-color: var(--yva-primary);
    background: #eef2ff;
    box-shadow: 0 0 0 2px rgba(0, 25, 127, 0.15);
}

.yva-gw-radio {
    margin-top: 3px;
    accent-color: var(--yva-primary);
}

.yva-gw-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--yva-dark);
}

.yva-gw-desc {
    font-size: 12px;
    color: var(--yva-gray-500);
    margin-top: 2px;
}

.yva-gateway-fields-box {
    background: var(--yva-gray-50);
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-md);
    padding: 15px;
    margin-top: 10px;
}

.yva-bank-pre {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 10px;
    border-radius: 6px;
    font-size: 12px;
    white-space: pre-wrap;
    font-family: inherit;
    margin: 8px 0 0 0;
    color: var(--yva-gray-700);
}

/* Submit Actions */
.yva-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00197f 0%, #1e40af 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--yva-radius-md);
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0, 25, 127, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.yva-submit-btn:hover {
    background: linear-gradient(135deg, #00125e 0%, #00197f 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 25, 127, 0.35);
}

.yva-terms-note {
    font-size: 11px;
    color: var(--yva-gray-500);
    text-align: center;
    margin-top: 10px;
}

/* Alert Box */
.yva-alert-box {
    padding: 12px 16px;
    border-radius: var(--yva-radius-md);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.yva-alert-box.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.yva-alert-box.success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

/* ==========================================================================
   POST-PAYMENT SUCCESS & COUNTDOWN OVERLAY
   ========================================================================== */

.yva-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    text-align: center;
}

.yva-success-card {
    max-width: 500px;
    width: 100%;
}

.yva-success-tag {
    display: inline-block;
    background: var(--yva-success-light);
    color: var(--yva-success);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 9999px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.yva-success-title {
    font-family: var(--yva-font-heading);
    font-size: 24px;
    font-weight: 800;
    margin: 4px 0 10px;
    color: var(--yva-dark);
}

.yva-success-msg {
    font-size: 15px;
    color: var(--yva-gray-700);
    margin-bottom: 18px;
}

.yva-order-receipt-chip {
    background: var(--yva-gray-50);
    border: 1px solid var(--yva-gray-200);
    display: inline-block;
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 13px;
    color: var(--yva-gray-700);
    margin-bottom: 25px;
}

.yva-countdown-box {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--yva-radius-md);
    padding: 15px 20px;
    margin-bottom: 22px;
}

.yva-countdown-box p {
    font-size: 14px;
    font-weight: 600;
    color: #166534;
    margin: 0 0 10px 0;
}

.yva-progress-bar {
    width: 100%;
    height: 6px;
    background: #dcfce7;
    border-radius: 9999px;
    overflow: hidden;
}

.yva-progress-fill {
    height: 100%;
    background: #16a34a;
    width: 100%;
    transition: width 1s linear;
}

.yva-btn-external-cta {
    display: block;
    background: linear-gradient(135deg, #00197f 0%, #1e40af 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 16px;
    font-weight: 800;
    padding: 16px 24px;
    border-radius: var(--yva-radius-md);
    box-shadow: 0 4px 15px rgba(0, 25, 127, 0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yva-btn-external-cta:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #00125e 0%, #00197f 100%);
    box-shadow: 0 8px 25px rgba(0, 25, 127, 0.35);
}

.yva-success-footer-note {
    font-size: 12px;
    color: var(--yva-gray-500);
    margin-top: 15px;
}

/* SVG Checkmark Animation */
.checkmark {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #16a34a;
    stroke-miterlimit: 10;
    margin: 0 auto 15px;
    box-shadow: inset 0px 0px 0px #16a34a;
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #16a34a;
    fill: none;
    animation: stroke .6s cubic-bezier(0.650, 0.000, 0.450, 1.000) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke .3s cubic-bezier(0.650, 0.000, 0.450, 1.000) .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 30px #dcfce7; }
}

/* Spinner */
.yva-spinner {
    width: 38px;
    height: 38px;
    border: 3px solid var(--yva-gray-200);
    border-top-color: var(--yva-primary);
    border-radius: 50%;
    animation: yva-spin 0.8s linear infinite;
    margin: 30px auto 10px;
}

@keyframes yva-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   CONFIRMATION STANDALONE VIEW
   ========================================================================== */

.yva-confirmation-wrapper {
    max-width: 650px;
    margin: 40px auto;
    padding: 0 20px;
}

.yva-confirmation-card {
    background: #ffffff;
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-lg);
    box-shadow: var(--yva-shadow-md);
    padding: 40px 35px;
    text-align: center;
}

.yva-confirm-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--yva-primary-light);
    color: var(--yva-primary);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.yva-confirm-title {
    font-family: var(--yva-font-heading);
    font-size: 28px;
    font-weight: 800;
    margin: 10px 0 8px;
    color: var(--yva-dark);
}

.yva-confirm-subtitle {
    font-size: 15px;
    color: var(--yva-gray-700);
    margin-bottom: 25px;
    line-height: 1.5;
}

.yva-receipt-box {
    background: var(--yva-gray-50);
    border: 1px solid var(--yva-gray-200);
    border-radius: var(--yva-radius-md);
    padding: 16px 20px;
    text-align: left;
    margin-bottom: 25px;
}

.yva-receipt-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px dashed var(--yva-gray-200);
}

.yva-receipt-item:last-child { border-bottom: none; }

.yva-external-cta-box {
    margin-bottom: 25px;
}

.yva-instructions-card {
    background: #f0fdf4;
    border-left: 4px solid var(--yva-success);
    border-radius: 6px;
    padding: 15px 20px;
    text-align: left;
    margin-bottom: 25px;
}

.yva-instructions-card h4 {
    margin: 0 0 6px 0;
    color: #166534;
    font-size: 14px;
}

.yva-instructions-card p {
    margin: 0;
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
}

.yva-back-link {
    color: var(--yva-gray-500);
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
}

.yva-back-link:hover { color: var(--yva-primary); }

/* Responsive adjustments */
@media (max-width: 840px) {
    .yva-checkout-layout {
        grid-template-columns: 1fr;
    }
    .yva-checkout-summary-col {
        border-right: none;
        border-bottom: 1px solid var(--yva-gray-200);
        border-radius: 20px 20px 0 0;
        padding: 25px 20px;
    }
    .yva-checkout-form-col {
        padding: 25px 20px;
    }
    .yva-hero-title {
        font-size: 28px;
    }
    .yva-form-row {
        flex-direction: column;
        gap: 12px;
    }
    .yva-col-6 {
        width: 100%;
    }
}

/* Print Styles for Official Receipt */
@media print {
    body * {
        visibility: hidden;
    }
    .yva-confirmation-wrapper,
    .yva-confirmation-wrapper * {
        visibility: visible;
    }
    .yva-confirmation-wrapper {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 10px;
    }
    .yva-receipt-actions,
    .yva-back-link,
    header, footer, nav, #wpadminbar, .elementor-location-header, .elementor-location-footer {
        display: none !important;
    }
    .yva-confirmation-card {
        box-shadow: none !important;
        border: 1px solid #cbd5e1 !important;
        page-break-inside: avoid;
    }
}

