/* ==========================================================================
   Theory2026 — Main Stylesheet
   BEM naming convention throughout.
   ========================================================================== */

/* ---------- Custom Properties ---------- */
:root {
    --theory-primary:     #36a9e1;
    --theory-secondary:   #be1622;
    --theory-success:     #34a853;
    --theory-warning:     #fbbc04;
    --theory-danger:      #ea4335;
    --theory-text:        #333;
    --theory-text-light:  #666;
    --theory-border:      #e0e0e0;
    --theory-bg:          #f8f9fa;
    --theory-white:       #fff;
    --theory-card-radius: 8px;
    --theory-card-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --theory-container:   1200px;
}

/* ---------- Base / Container ---------- */
.theory-agenda__container,
.theory-course__container {
    max-width: var(--theory-container);
    margin: 0 auto;
    padding: 20px;
}

.theory-agenda__title,
.theory-course__title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--theory-text);
    margin: 0 0 20px;
}

/* ---------- Agenda Grid (Cards) ---------- */
.theory-agenda__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.theory-agenda__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.theory-agenda__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--theory-text-light);
}

/* ---------- Card ---------- */
.theory-card {
    background: var(--theory-white);
    border-radius: var(--theory-card-radius);
    box-shadow: var(--theory-card-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.theory-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.theory-card__date {
    background: var(--theory-primary);
    color: var(--theory-white);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.theory-card__day {
    font-weight: 600;
    font-size: 0.95rem;
}

.theory-card__date-str {
    font-size: 0.9rem;
}

.theory-card__body {
    padding: 16px;
    flex: 1;
}

.theory-card__location {
    font-weight: 600;
    color: var(--theory-text);
    margin-bottom: 4px;
}

.theory-card__venue {
    display: block;
    font-weight: 400;
    color: var(--theory-text-light);
    font-size: 0.875rem;
}

.theory-card__type {
    font-size: 0.875rem;
    color: var(--theory-text-light);
    margin-bottom: 4px;
}

.theory-card__time {
    font-size: 0.875rem;
    color: var(--theory-text-light);
}

.theory-card__footer {
    padding: 12px 16px;
    border-top: 1px solid var(--theory-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.theory-card__price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theory-text);
}

.theory-card__cta {
    display: inline-block;
    padding: 8px 20px;
    background: var(--theory-secondary);
    color: var(--theory-white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}

.theory-card__cta:hover {
    background: #9a1119;
    color: var(--theory-white);
}

/* ---------- Badges ---------- */
.theory-card__badge,
.theory-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.4;
}

.theory-card__badge--available,
.theory-badge--available {
    background: #e6f4ea;
    color: var(--theory-success);
}

.theory-card__badge--last,
.theory-badge--last {
    background: #fef7e0;
    color: #b8860b;
}

.theory-card__badge--full,
.theory-badge--full {
    background: #fce8e6;
    color: var(--theory-danger);
}

/* ---------- Table View ---------- */
.theory-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.theory-table__th {
    text-align: left;
    padding: 10px 12px;
    background: var(--theory-bg);
    color: var(--theory-text);
    font-weight: 600;
    border-bottom: 2px solid var(--theory-border);
    white-space: nowrap;
}

.theory-table__td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--theory-border);
    vertical-align: middle;
}

.theory-table__row:hover {
    background: var(--theory-bg);
}

/* ---------- Filter Bar ---------- */
.theory-filter {
    background: var(--theory-bg);
    border-radius: var(--theory-card-radius);
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
}

.theory-filter__group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.theory-filter__group--actions {
    margin-left: auto;
}

.theory-filter__label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--theory-text);
}

.theory-filter__options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.theory-filter__btn {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--theory-border);
    border-radius: 20px;
    background: var(--theory-white);
    color: var(--theory-text);
    text-decoration: none;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.theory-filter__btn:hover {
    border-color: var(--theory-primary);
    color: var(--theory-primary);
}

.theory-filter__btn--active {
    background: var(--theory-primary);
    color: var(--theory-white);
    border-color: var(--theory-primary);
}

.theory-filter__btn--active:hover {
    background: #2b8abb;
    color: var(--theory-white);
}

.theory-filter__btn--more {
    border-style: dashed;
}

.theory-filter__expanded {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 8px;
}

.theory-filter__expanded[hidden] {
    display: none;
}

.theory-filter__view-toggle {
    display: flex;
    gap: 4px;
}

.theory-filter__view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--theory-border);
    border-radius: 4px;
    background: var(--theory-white);
    color: var(--theory-text-light);
    text-decoration: none;
    font-size: 1rem;
}

.theory-filter__view-btn--active {
    background: var(--theory-primary);
    color: var(--theory-white);
    border-color: var(--theory-primary);
}

.theory-filter__clear {
    font-size: 0.85rem;
    color: var(--theory-danger);
    text-decoration: underline;
}

/* ---------- Pagination ---------- */
.theory-agenda__pagination {
    margin-top: 24px;
    text-align: center;
}

.theory-agenda__pagination .page-numbers {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 2px;
    border: 1px solid var(--theory-border);
    border-radius: 4px;
    text-decoration: none;
    color: var(--theory-text);
    font-size: 0.9rem;
}

.theory-agenda__pagination .page-numbers.current {
    background: var(--theory-primary);
    color: var(--theory-white);
    border-color: var(--theory-primary);
}

.theory-agenda__pagination .page-numbers:hover:not(.current) {
    background: var(--theory-bg);
}

/* ---------- Single Course ---------- */
.theory-course {
    background: #faf7f7;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    position: relative;
}

.theory-course__container {
    padding-top: 24px;
    padding-bottom: 40px;
}

/* Breadcrumb */
.theory-breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0;
    margin: 0 0 16px;
    font-size: 0.85rem;
}

.theory-breadcrumb__item {
    color: var(--theory-text-light);
}

.theory-breadcrumb__item a {
    color: var(--theory-primary);
    text-decoration: none;
}

.theory-breadcrumb__item a:hover {
    text-decoration: underline;
}

.theory-breadcrumb__item + .theory-breadcrumb__item::before {
    content: "›";
    margin-right: 4px;
    color: var(--theory-text-light);
}

.theory-breadcrumb__item--current {
    color: var(--theory-text);
}

/* Course Header */
.theory-course__header {
    margin-bottom: 24px;
}

.theory-course__header-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.theory-course__price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theory-text);
}

.theory-course__badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.theory-course__badge--available {
    background: #e6f4ea;
    color: var(--theory-success);
}

.theory-course__badge--last {
    background: #fef7e0;
    color: #b8860b;
}

.theory-course__badge--full {
    background: #fce8e6;
    color: var(--theory-danger);
}

/* Notice (past / full) */
.theory-course__notice {
    padding: 16px 20px;
    border-radius: var(--theory-card-radius);
    margin-bottom: 24px;
    font-weight: 500;
}

.theory-course__notice--past {
    background: #fef7e0;
    border-left: 4px solid var(--theory-warning);
    color: #7a6400;
}

.theory-course__notice--full {
    background: #fce8e6;
    border-left: 4px solid var(--theory-danger);
    color: #a51d11;
}

/* Two-column layout */
.theory-course__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

/* Reviews and Related sections */
.theory-course__reviews {
    margin-top: 40px;
}

.theory-course__related {
    margin-top: 40px;
}


/* ---------- Enrollment Form ---------- */
.theory-enroll {
    background: var(--theory-white);
    border: 2px solid var(--theory-border);
    border-radius: var(--theory-card-radius);
    padding: 24px;
}

.theory-enroll__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theory-secondary);
    margin: 0 0 16px;
}

.theory-enroll__errors {
    background: #fce8e6;
    border: 1px solid var(--theory-danger);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.theory-enroll__error {
    color: var(--theory-danger);
    margin: 0 0 4px;
    font-size: 0.9rem;
}

.theory-enroll__error:last-child {
    margin-bottom: 0;
}

.theory-enroll__field {
    margin-bottom: 14px;
}

.theory-enroll__label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--theory-text);
    margin-bottom: 4px;
}

.theory-enroll__input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--theory-border);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--theory-text);
    background: var(--theory-white);
    box-sizing: border-box;
}

.theory-enroll__input:focus {
    border-color: var(--theory-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(54, 169, 225, 0.2);
}

.theory-enroll__options {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theory-enroll__option {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--theory-text);
    cursor: pointer;
}

.theory-enroll__option input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.theory-enroll__price-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--theory-border);
    border-bottom: 1px solid var(--theory-border);
    margin: 16px 0;
}

.theory-enroll__price-label {
    font-weight: 600;
    color: var(--theory-text);
}

.theory-enroll__price-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--theory-secondary);
}

.theory-enroll__terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--theory-text-light);
    margin-bottom: 16px;
    cursor: pointer;
}

.theory-enroll__terms input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
}

.theory-enroll__terms a {
    color: var(--theory-primary);
    text-decoration: underline;
}

.theory-enroll__submit {
    width: 100%;
    cursor: pointer;
    border: none;
}

/* ---------- Buttons ---------- */
.theory-btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
    line-height: 1.4;
}

.theory-btn--primary {
    background: var(--theory-secondary);
    color: var(--theory-white);
}

.theory-btn--primary:hover {
    background: #9a1119;
    color: var(--theory-white);
}

.theory-btn--small {
    padding: 6px 16px;
    font-size: 0.85rem;
    background: var(--theory-secondary);
    color: var(--theory-white);
}

.theory-btn--small:hover {
    background: #9a1119;
    color: var(--theory-white);
}

/* ---------- Course Info ---------- */
.theory-info {
    background: var(--theory-bg);
    border-radius: var(--theory-card-radius);
    padding: 24px;
}

.theory-info__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theory-text);
    margin: 0 0 16px;
}

.theory-info__list {
    margin: 0;
}

.theory-info__item {
    display: flex;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--theory-border);
}

.theory-info__item:last-child {
    border-bottom: none;
}

.theory-info__label {
    font-weight: 600;
    color: var(--theory-text);
    min-width: 100px;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.theory-info__value {
    color: var(--theory-text-light);
    font-size: 0.9rem;
}

.theory-info__value--price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--theory-text);
}

.theory-info__maps-link {
    color: var(--theory-primary);
    text-decoration: none;
    font-size: 0.85rem;
}

.theory-info__maps-link:hover {
    text-decoration: underline;
}

.theory-info__change-date {
    color: var(--theory-primary);
    text-decoration: none;
    font-size: 0.8rem;
}

.theory-info__change-date:hover {
    text-decoration: underline;
}

/* Included items */
.theory-info__included {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--theory-border);
}

.theory-info__included-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--theory-text);
    margin: 0 0 10px;
}

.theory-info__included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theory-info__included-item {
    padding: 4px 0;
    font-size: 0.9rem;
    color: var(--theory-text-light);
}

.theory-info__included-item::before {
    content: "\2713\00a0";
    color: var(--theory-success);
    font-weight: 700;
}

/* ---------- Related / Alternatives ---------- */
.theory-related__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theory-text);
    margin: 0 0 16px;
}

.theory-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* ---------- Reviews ---------- */
.theory-reviews__title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--theory-text);
    margin: 0 0 16px;
}

.theory-reviews__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.theory-reviews__badge-score {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theory-text);
}

.theory-reviews__badge {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--theory-white);
    border: 1px solid var(--theory-border);
    border-radius: var(--theory-card-radius);
}

.theory-reviews__badge-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--theory-text);
}

.theory-reviews__badge-rating {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--theory-text);
}

.theory-reviews__stars {
    color: #ffa500;
    letter-spacing: 1px;
}

.theory-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.theory-reviews__item {
    background: var(--theory-bg);
    padding: 16px;
    border-radius: var(--theory-card-radius);
    border-left: 4px solid var(--theory-success);
}

.theory-reviews__item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.theory-reviews__item-author {
    font-weight: 600;
    color: var(--theory-text);
    font-size: 0.9rem;
}

.theory-reviews__item-date {
    font-size: 0.8rem;
    color: var(--theory-text-light);
}

.theory-reviews__item-comment {
    font-size: 0.9rem;
    color: var(--theory-text-light);
    font-style: italic;
    margin: 0;
}

/* Stars */
.theory-stars {
    display: inline-flex;
    gap: 1px;
}

.theory-stars__star {
    color: #ffa500;
    font-size: 1rem;
    line-height: 1;
}

.theory-stars__star--empty {
    color: #ddd;
}

/* Recent reviews */
.theory-reviews__recent {
    margin-top: 20px;
}

.theory-reviews__recent-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--theory-secondary);
    margin: 0 0 12px;
}

.theory-reviews__review {
    background: var(--theory-bg);
    padding: 16px;
    border-radius: var(--theory-card-radius);
    border-left: 4px solid var(--theory-success);
    margin-bottom: 12px;
}

.theory-reviews__review:last-child {
    margin-bottom: 0;
}

.theory-reviews__review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.theory-reviews__review-meta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.theory-reviews__review-name {
    font-weight: 600;
    color: var(--theory-text);
    font-size: 0.9rem;
}

.theory-reviews__review-verified {
    color: var(--theory-success);
    font-size: 0.8rem;
}

.theory-reviews__review-date {
    font-size: 0.8rem;
    color: var(--theory-text-light);
}

.theory-reviews__review-text {
    font-size: 0.9rem;
    color: var(--theory-text-light);
    font-style: italic;
    margin: 0;
}

/* ---------- Payment Status ---------- */
.theory-payment {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.theory-payment__card {
    background: var(--theory-white);
    border-radius: var(--theory-card-radius);
    box-shadow: var(--theory-card-shadow);
    padding: 32px;
    text-align: center;
}

.theory-payment__icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.theory-payment__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--theory-text);
}

.theory-payment__message {
    color: var(--theory-text-light);
    margin: 0 0 20px;
    font-size: 1rem;
}

.theory-payment__container {
    max-width: 600px;
    margin: 40px auto;
    padding: 0 20px;
}

.theory-payment__card--success .theory-payment__icon { color: var(--theory-success); }
.theory-payment__card--pending .theory-payment__icon { color: var(--theory-warning); }
.theory-payment__card--cancelled .theory-payment__icon { color: var(--theory-danger); }
.theory-payment__card--expired .theory-payment__icon { color: var(--theory-text-light); }
.theory-payment__card--error .theory-payment__icon { color: var(--theory-danger); }

.theory-payment__text {
    color: var(--theory-text-light);
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.theory-payment__details {
    background: var(--theory-bg);
    border-radius: var(--theory-card-radius);
    padding: 16px;
    margin-bottom: 20px;
    text-align: left;
}

.theory-payment__details p {
    margin: 4px 0;
    font-size: 0.95rem;
}

.theory-payment__icon--spin {
    animation: theory-spin 1.5s linear infinite;
}

@keyframes theory-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ---------- Agenda V1 Layout ---------- */
.theory-v1__container {
    max-width: var(--theory-container);
    margin: 0 auto;
    padding: 20px;
}

.theory-v1__controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.theory-v1__select-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theory-v1__select-label {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--theory-text);
}

.theory-v1__city-select {
    padding: 12px 15px;
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 15px;
    border: 2px solid #ccc;
    border-radius: 8px;
    background: var(--theory-white);
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.theory-v1__city-select:hover,
.theory-v1__city-select:focus {
    border-color: var(--theory-primary);
    outline: none;
}

.theory-v1__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #25D366;
    color: var(--theory-white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 5px rgba(37, 211, 102, 0.3);
}

.theory-v1__whatsapp:hover {
    background: #20BA5A;
    color: var(--theory-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.4);
}

.theory-v1__info {
    text-align: center;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 14px;
    font-style: italic;
    color: var(--theory-text-light);
    line-height: 1.7;
    margin: 0 0 24px;
}

.theory-v1__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.theory-v1__table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
    table-layout: auto;
}

.theory-v1__th {
    text-align: left;
    padding: 10px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: var(--theory-secondary);
    font-weight: 700;
}

.theory-v1__row {
    background: var(--theory-white);
}

.theory-v1__date {
    padding: 12px 10px;
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    font-size: 22px;
    color: var(--theory-secondary);
    vertical-align: top;
    white-space: nowrap;
}

.theory-v1__city {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--theory-text-light);
    margin-top: 2px;
}

.theory-v1__enroll {
    padding: 12px 10px;
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 18px;
    vertical-align: top;
}

.theory-v1__enroll-link {
    color: var(--theory-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 20px;
}

.theory-v1__enroll-link:hover {
    text-decoration: underline;
}

.theory-v1__hint {
    display: block;
    font-size: 13px;
    color: var(--theory-text-light);
    font-weight: 400;
    margin-top: 2px;
}

.theory-v1__full {
    color: var(--theory-text-light);
    font-size: 18px;
    font-weight: 600;
}

.theory-v1__empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--theory-text-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .theory-agenda__grid {
        grid-template-columns: 1fr;
    }

    .theory-course__columns {
        grid-template-columns: 1fr;
    }

    .theory-related__grid {
        grid-template-columns: 1fr;
    }

    .theory-filter {
        flex-direction: column;
    }

    .theory-filter__group--actions {
        margin-left: 0;
    }

    .theory-course__header-meta {
        flex-wrap: wrap;
    }

    .theory-reviews__badges {
        flex-direction: column;
    }

    /* Agenda V1 responsive */
    .theory-v1__controls {
        flex-direction: column;
        gap: 12px;
    }

    .theory-v1__select-wrap {
        flex-direction: column;
        width: 100%;
    }

    .theory-v1__city-select {
        width: 100%;
    }

    .theory-v1__whatsapp {
        width: 100%;
        justify-content: center;
    }

    .theory-v1__date {
        font-size: 18px;
        white-space: normal;
    }

    .theory-v1__enroll-link {
        font-size: 16px;
    }
}

/* ==========================================================================
   Wizard Shortcode
   ========================================================================== */

/* ---------- Container ---------- */
.theory-wizard {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px;
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--theory-white);
    border: 1px solid var(--theory-primary);
    border-radius: var(--theory-card-radius);
    box-shadow: var(--theory-card-shadow);
}

@media (min-width: 1024px) {
    .theory-wizard {
        max-width: 1000px;
        padding: 30px;
    }
}

@media (min-width: 1440px) {
    .theory-wizard {
        max-width: 1200px;
    }
}

/* ---------- Progress Bar ---------- */
.theory-wizard__progress {
    height: 8px;
    background: var(--theory-border);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
}

.theory-wizard__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #be1622 0%, #36a9e1 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.theory-wizard__steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.theory-wizard__step {
    font-size: 16px;
    color: #ccc;
    text-decoration: none;
    cursor: default;
}

.theory-wizard__step--active {
    color: var(--theory-secondary);
    font-weight: 600;
}

.theory-wizard__step--done {
    color: var(--theory-primary);
    cursor: pointer;
    text-decoration: none;
}

.theory-wizard__step--done:hover {
    text-decoration: underline;
}

/* ---------- Content ---------- */
.theory-wizard__content {
    padding: 0;
}

.theory-wizard__heading {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--theory-primary);
    margin: 0 0 8px;
    text-align: center;
}

.theory-wizard__subheading {
    color: var(--theory-text-light);
    font-size: 15px;
    font-weight: 400;
    margin: 0 0 24px;
    text-align: center;
}

/* ---------- Step 1: Option Cards ---------- */
.theory-wizard__options-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.theory-wizard__option-card {
    position: relative;
    background: var(--theory-white);
    border: 2px solid var(--theory-border);
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.theory-wizard__option-card:hover {
    border-color: var(--theory-primary);
    box-shadow: 0 4px 12px rgba(54, 169, 225, 0.15);
    transform: translateY(-2px);
}

.theory-wizard__option-card--selected {
    border-color: #b1d9f0;
    background: #faf7f7;
}

.theory-wizard__option-badge {
    position: absolute;
    top: -10px;
    right: 10px;
    background: #48bb78;
    color: var(--theory-white);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.theory-wizard__option-header {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--theory-secondary);
    margin-bottom: 10px;
}

.theory-wizard__option-body {
    border-top: 1px solid #eee;
    margin-top: 15px;
    padding-top: 15px;
}

.theory-wizard__option-body p {
    font-size: 14px;
    color: var(--theory-text-light);
    margin: 0 0 8px;
    padding-left: 20px;
    position: relative;
}

.theory-wizard__option-body p::before {
    content: "\2713";
    color: var(--theory-success);
    font-weight: 700;
    font-size: 14px;
    position: absolute;
    left: 0;
    top: 0;
}

/* ---------- Step 2a: Timing Cards ---------- */
.theory-wizard__timing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.theory-wizard__timing-card {
    background: var(--theory-white);
    border: 2px solid var(--theory-border);
    border-radius: var(--theory-card-radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.theory-wizard__timing-card:hover {
    border-color: var(--theory-primary);
    transform: translateY(-2px);
}

.theory-wizard__timing-card--selected {
    border-color: var(--theory-primary);
    background: #f0f8ff;
}

.theory-wizard__timing-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.theory-wizard__timing-label {
    font-weight: 600;
    color: var(--theory-text);
    margin-bottom: 4px;
}

.theory-wizard__timing-desc {
    font-size: 12px;
    color: var(--theory-text-light);
}

/* ---------- Datepicker ---------- */
.theory-wizard__datepicker {
    margin: 16px 0;
}

.theory-wizard__label {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    font-size: 16px;
    color: var(--theory-primary);
    display: block;
    margin-bottom: 8px;
}

.theory-wizard__input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--theory-border);
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 14px;
    color: var(--theory-text);
}

.theory-wizard__input:focus {
    border-color: var(--theory-primary);
    outline: none;
    box-shadow: 0 0 0 2px rgba(54, 169, 225, 0.2);
}

/* ---------- USPs ---------- */
.theory-wizard__usps {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: var(--theory-bg);
    border-radius: var(--theory-card-radius);
}

.theory-wizard__usp {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--theory-text);
}

.theory-wizard__usp-icon {
    color: var(--theory-success);
    font-weight: 700;
    font-size: 14px;
}

/* ---------- Step 2b: Period Cards ---------- */
.theory-wizard__period-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.theory-wizard__period-card {
    position: relative;
    background: var(--theory-white);
    border: 2px solid var(--theory-border);
    border-radius: var(--theory-card-radius);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.theory-wizard__period-card:hover {
    border-color: var(--theory-primary);
    box-shadow: 0 4px 12px rgba(54, 169, 225, 0.1);
}

.theory-wizard__period-card--selected {
    border-color: #b1d9f0;
    background-color: #faf7f7;
}

.theory-wizard__period-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: var(--theory-white);
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.theory-wizard__period-label {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    color: var(--theory-primary);
    font-size: 20px;
    margin-bottom: 10px;
}

.theory-wizard__period-price {
    font-size: 16px;
    color: #666;
    margin-bottom: 4px;
}

.theory-wizard__period-strike {
    text-decoration: line-through;
    color: #999;
    font-size: 14px;
    font-weight: 400;
    margin-right: 4px;
}

.theory-wizard__period-promo {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.theory-wizard__period-until {
    font-size: 12px;
    color: #888;
    margin-top: 5px;
}

/* ---------- Includes ---------- */
.theory-wizard__includes {
    background: #e8f4f8;
    border-left: 4px solid var(--theory-primary);
    border-radius: 4px;
    padding: 20px;
    margin: 20px 0;
}

.theory-wizard__includes-title {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--theory-primary);
    margin: 0 0 12px;
}

.theory-wizard__includes-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.theory-wizard__includes-list {
    margin: 0;
    padding-left: 20px;
    color: #333;
    font-size: 14px;
    line-height: 1.8;
}

.theory-wizard__includes-list li {
    list-style: none;
    position: relative;
    padding-left: 4px;
}

.theory-wizard__includes-list li::before {
    content: "\2713";
    color: var(--theory-primary);
    font-weight: 700;
    position: absolute;
    left: -18px;
}

/* ---------- Checkbox Row ---------- */
.theory-wizard__checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
}

/* ---------- Navigation ---------- */
.theory-wizard__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--theory-border);
}

.theory-wizard__btn-back {
    display: inline-block;
    background: none;
    border: 2px solid #ccc;
    color: var(--theory-text-light);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.theory-wizard__btn-back:hover {
    border-color: #999;
    color: var(--theory-text);
}

.theory-wizard__btn-next {
    display: inline-block;
    padding: 15px 40px;
    background: #48bb78;
    color: var(--theory-white);
    border: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
}

.theory-wizard__btn-next:hover {
    background: #3da866;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.4);
}

.theory-wizard__btn-submit {
    display: inline-block;
    padding: 15px 32px;
    background: #48bb78;
    color: var(--theory-white);
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.theory-wizard__btn-submit:hover {
    background: #38a169;
}

/* ---------- Step 3: Two-column Layout ---------- */
.theory-wizard__step3-layout {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 24px;
    align-items: start;
}

.theory-wizard__form-heading {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--theory-secondary);
    margin: 0 0 16px;
}

.theory-wizard__form-heading--blue {
    color: var(--theory-primary);
    margin-top: 20px;
}

.theory-wizard__form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.theory-wizard__form-col {
    flex: 1;
}

.theory-wizard__form-field {
    margin-bottom: 12px;
}

.theory-wizard__price-display {
    font-size: 16px;
    color: var(--theory-text-light);
    margin: 16px 0;
    padding: 12px 0;
    border-top: 1px solid var(--theory-border);
}

/* ---------- Summary ---------- */
.theory-wizard__summary-box {
    background: var(--theory-bg);
    border: 1px solid var(--theory-border);
    border-radius: var(--theory-card-radius);
    padding: 16px;
    margin-bottom: 12px;
}

.theory-wizard__summary-title {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--theory-primary);
    margin: 0 0 10px;
}

.theory-wizard__summary-type {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    color: var(--theory-primary);
    margin: 0 0 4px;
}

.theory-wizard__summary-detail {
    font-size: 13px;
    color: var(--theory-text-light);
    margin: 0 0 6px;
}

.theory-wizard__summary-price {
    border-top: 1px solid var(--theory-border);
    margin-top: 12px;
    padding-top: 12px;
}

.theory-wizard__summary-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--theory-text-light);
    margin-bottom: 4px;
}

.theory-wizard__summary-price-total {
    border-top: 1px solid var(--theory-border);
    margin-top: 6px;
    padding-top: 6px;
    color: var(--theory-text);
    font-size: 14px;
}

/* ---------- Accordion ---------- */
.theory-wizard__accordion {
    cursor: pointer;
}

.theory-wizard__accordion-arrow {
    float: right;
    font-size: 10px;
    transition: transform 0.2s ease;
}

.theory-wizard__accordion--open .theory-wizard__accordion-arrow {
    transform: rotate(180deg);
}

.theory-wizard__accordion-body {
    display: none;
    padding-top: 10px;
}

.theory-wizard__accordion--open + .theory-wizard__accordion-body {
    display: block;
}

.theory-wizard__includes-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.theory-wizard__includes-list li {
    font-size: 12px;
    color: var(--theory-text-light);
    padding: 3px 0;
}

.theory-wizard__includes-list li::before {
    content: "\2713\00a0";
    color: var(--theory-success);
    font-weight: 700;
}

/* ---------- Errors ---------- */
.theory-wizard__errors {
    background: #fce8e6;
    border: 1px solid var(--theory-danger);
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.theory-wizard__error {
    color: var(--theory-danger);
    margin: 0 0 4px;
    font-size: 14px;
}

.theory-wizard__error:last-child {
    margin-bottom: 0;
}

/* ---------- Processing Overlay ---------- */
.theory-wizard__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theory-wizard__overlay-inner {
    background: var(--theory-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.theory-wizard__overlay-text {
    font-family: 'Zilla Slab', Georgia, serif;
    font-size: 20px;
    color: var(--theory-secondary);
    margin-bottom: 15px;
}

.theory-wizard__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--theory-primary);
    border-radius: 50%;
    animation: theory-spin 1s linear infinite;
    margin: 0 auto;
}

/* ---------- Wizard Responsive ---------- */
@media (max-width: 768px) {
    .theory-wizard__options-grid {
        grid-template-columns: 1fr;
    }

    .theory-wizard__timing-grid {
        grid-template-columns: 1fr;
    }

    .theory-wizard__period-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .theory-wizard__period-card {
        padding: 15px;
    }

    .theory-wizard__step3-layout {
        grid-template-columns: 1fr;
    }

    .theory-wizard__form-row {
        flex-direction: column;
        gap: 0;
    }

    .theory-wizard__form-col {
        margin-bottom: 12px;
    }

    .theory-wizard__includes-grid {
        grid-template-columns: 1fr;
    }

    .theory-wizard__content {
        padding: 20px 16px;
    }

    .theory-wizard__btn-submit {
        width: 100%;
    }

    .theory-wizard__nav {
        flex-direction: column;
        gap: 12px;
    }

    .theory-wizard__btn-next {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   Enrollment form (shared between single course + wizard)
   ============================================ */

.theory-form-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.theory-form-row > div {
    flex: 1;
}

.theory-form-input {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
    font-size: 13.33px;
    font-weight: 400;
    color: #4E4E4E;
    background: #FFFFFF;
    height: 44px;
}

.theory-form-input:focus {
    border-color: #36a9e1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(54, 169, 225, 0.2);
}

@media (max-width: 768px) {
    .theory-form-row {
        flex-direction: column;
        gap: 0;
    }

    .theory-form-row > div {
        margin-bottom: 15px;
    }
}
