/**
 * TheoryIn Plugin Stylesheet
 * Centralized styles for all shortcodes and forms
 */

/* ==========================================
   BUTTONS
   ========================================== */

.btn-cta {
    display: inline-block;
    width: 100%;
    padding: 15px 25px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    background: #48bb78;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: middle;
}

.btn-cta:hover {
    background: #3da866;
}

.btn-next {
    display: inline-block;
    background: #48bb78;
    border: none;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(72, 187, 120, 0.3);
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: middle;
}

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

.btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    color: #48bb78;
    background: transparent;
    border: 2px solid #48bb78;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #48bb78;
    color: white;
}

.btn-back {
    background: none;
    border: 2px solid #ccc;
    color: #666;
    padding: 15px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    line-height: 1.2;
    vertical-align: middle;
}

.btn-back:hover {
    border-color: #999;
    color: #333;
}

.btn-link {
    background: none;
    border: none;
    color: #36a9e1;
    text-decoration: none;
    font-size: 14px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: #2a8bc4;
    text-decoration: underline;
}

/* ==========================================
   FORM ELEMENTS
   ========================================== */

.form-container {
    max-width: 500px;
    margin: 20px auto;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #36a9e1;
}

.form-container-wide {
    max-width: 800px;
    margin: 20px auto;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    border: 2px solid #36a9e1;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 4px;
    background-color: white;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: #36a9e1;
    box-shadow: 0 0 5px rgba(54, 169, 225, 0.3);
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-family: Arial, sans-serif;
    font-weight: bold;
    color: #333;
    font-size: 14px;
}

.form-help-text {
    color: #666;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.form-group {
    margin-bottom: 20px;
}

/* ==========================================
   INFO BOXES
   ========================================== */

.info-box {
    background: #e8f4f8;
    padding: 15px;
    border-radius: 4px;
    border-left: 4px solid #36a9e1;
    margin: 20px 0;
}

.info-box-success {
    background: #e8f8f0;
    border-left-color: #48bb78;
}

.info-box-warning {
    background: #fff8e6;
    border-left-color: #ffc107;
}

.error-box {
    margin: 20px auto;
    max-width: 500px;
    padding: 15px;
    background: #ffe6e6;
    border: 1px solid #ff0000;
    border-radius: 4px;
    color: #ff0000;
    text-align: center;
}

/* ==========================================
   LAYOUT UTILITIES
   ========================================== */

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px;
}

.col-100 {
    width: 100%;
    padding: 0 10px;
}

.col-50 {
    width: 50%;
    padding: 0 10px;
}

.col-40 {
    width: 40%;
    padding: 0 10px;
}

.col-60 {
    width: 60%;
    padding: 0 10px;
}

@media (max-width: 768px) {
    .col-50,
    .col-40,
    .col-60 {
        width: 100%;
        margin-bottom: 20px;
    }
}

/* ==========================================
   TEXT UTILITIES
   ========================================== */

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-red {
    color: #be1622;
}

.text-blue {
    color: #36a9e1;
}

.text-green {
    color: #48bb78;
}

.text-gray {
    color: #666;
}

/* ==========================================
   SPACING UTILITIES
   ========================================== */

.mb-10 { margin-bottom: 10px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }

.mt-10 { margin-top: 10px; }
.mt-15 { margin-top: 15px; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }

.p-15 { padding: 15px; }
.p-20 { padding: 20px; }
.p-25 { padding: 25px; }

/* ==========================================
   TYPOGRAPHY
   ========================================== */

.heading-primary {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    font-size: 28px;
    color: #36a9e1;
    margin-bottom: 20px;
}

.heading-secondary {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    font-size: 22px;
    color: #be1622;
    margin-bottom: 15px;
}

.heading-tertiary {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    font-size: 18px;
    color: #be1622;
    margin-bottom: 10px;
}

/* ==========================================
   OPTION CARDS (for period selection, etc)
   ========================================== */

.option-card {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.option-card:hover {
    border-color: #48bb78;
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.1);
}

.option-card.selected {
    border-color: #48bb78;
    background-color: #f8fff9;
}

.option-card-badge {
    background: #48bb78;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 10px;
}

.option-card-title {
    font-family: 'Zilla Slab', Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    color: #be1622;
    margin-bottom: 10px;
}

.option-card-price {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

/* ==========================================
   GRID LAYOUTS
   ========================================== */

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================
   WIZARD SPECIFIC STYLES
   ========================================== */

.wizzard-container {
    font-family: "Open Sans", Arial, sans-serif;
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #36a9e1;
    border-radius: 8px;
}

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

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

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.progress-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-grow: 1;
}

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

.step-navigation {
    display: flex;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 10px;
}

.current-step {
    color: #be1622;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
}

.accessible-step {
    color: #36a9e1;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
}

.accessible-step:hover {
    color: #be1622;
    text-decoration: underline;
}

.inaccessible-step {
    color: #ccc;
    font-size: 16px;
    cursor: default;
}

.step-header {
    font-family: "Zilla Slab", Georgia, "Times New Roman", serif;
    font-weight: 600;
    font-size: 28px;
    color: #36a9e1;
    margin-bottom: 20px;
    text-align: center;
}

.exam-option {
    background: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 20px;
    margin: 15px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.exam-option:hover {
    border-color: #36a9e1;
    box-shadow: 0 4px 12px rgba(54, 169, 225, 0.1);
}

.exam-option.selected {
    border-color: #b1d9f0;
    background-color: #faf7f7;
}

.exam-option-content {
    position: relative;
}

.exam-option-badge {
    background: #48bb78;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: -10px;
    z-index: 1;
}

.exam-option-header-mobile {
    font-family: "Zilla Slab", Georgia, serif;
    font-weight: 600;
    font-size: 20px;
    color: #be1622;
    margin-bottom: 10px;
}

.exam-option-price {
    font-size: 16px;
    color: #666;
    margin-bottom: 15px;
}

.exam-option-features {
    list-style: none;
    padding: 0;
}

.exam-option-features li {
    color: #666;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.exam-option-features li:before {
    content: "";
    background-image: url("../wp-content/uploads/2021/10/Auto-theorie-cursus-vinkje-Nationaal-Theoriecentrum.png");
    background-size: 16px 16px;
    background-repeat: no-repeat;
    background-position: center;
    width: 16px;
    height: 16px;
    position: absolute;
    left: 0;
    top: 2px;
}

.extras-included-list {
    list-style: none !important;
    padding: 0;
    margin: 10px 0;
}

.extras-included-list li {
    color: #666;
    font-size: 14px;
    margin-bottom: 8px;
    padding-left: 30px;
    position: relative;
    list-style: none !important;
}

.extras-included-list li::before {
    content: "";
    display: inline-block;
    background-image: url("vinkje.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    width: 18px;
    height: 18px;
    position: absolute;
    left: 0;
    top: 0;
}

.navigation-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.navigation-buttons .btn-cta,
.navigation-buttons .btn-next {
    width: auto;
    min-width: 120px;
    border: 2px solid transparent;
    box-sizing: border-box;
}

.navigation-buttons .btn-back {
    min-width: 120px;
    box-sizing: border-box;
}

.exam-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.exam-options-grid .exam-option {
    margin: 0 !important;
    display: flex;
    flex-direction: column;
}

.exam-options-grid .exam-option-features {
    font-size: 13px;
}

.exam-options-grid .exam-option-features li {
    margin-bottom: 6px;
    display: flex;
    align-items: flex-start;
    color: #666;
}

.exam-options-grid .exam-option-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 11px;
    padding: 4px 8px;
}

.period-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

@media (max-width: 992px) {
    .exam-options-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* ==========================================
   RESPONSIVE UTILITIES
   ========================================== */

@media (max-width: 768px) {
    .form-container,
    .form-container-wide {
        padding: 15px;
        margin: 10px;
    }

    .btn-cta {
        font-size: 16px;
        padding: 12px 20px;
    }

    .heading-primary {
        font-size: 24px;
    }

    .heading-secondary {
        font-size: 20px;
    }

    .wizzard-container {
        padding: 15px;
        margin: 10px 10px 30px 10px;
        border-radius: 6px;
    }

    .step-navigation {
        font-size: 12px;
    }

    .current-step,
    .accessible-step,
    .inaccessible-step {
        font-size: 14px;
    }

    .step-header {
        font-size: 24px;
    }

    .exam-option {
        padding: 15px;
    }

    .navigation-buttons {
        flex-wrap: wrap;
        gap: 10px;
    }

    .col-40, .col-60 {
        width: 100%;
        margin-bottom: 20px;
    }

    .exam-options-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .exam-options-grid .exam-option {
        padding: 15px;
        min-height: auto !important;
    }

    .exam-options-grid .exam-option-header-mobile {
        font-size: 18px;
    }

    .exam-options-grid .exam-option-badge {
        position: static;
        align-self: flex-start;
        margin-bottom: 10px;
        order: -1;
    }

    .exam-option-header-mobile {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .period-options-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}
