/* File: public/assets/css/program.css */

:root {
    --primary-yellow: #ffd700;
    --dark-yellow: #ffc107;
    --black: #212529;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
}

/* Custom Container untuk Lebar Halaman */
.custom-container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .custom-container {
        width: 98%;
        max-width: 100%;
        padding: 0 10px;
    }
}

/* Top Ribbon Styles - NON-STICKY */
.top-ribbon {
    background-color: var(--black);
    color: white;
    padding: 8px 0;
    font-size: 0.9rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.ribbon-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ribbon-brand {
    font-weight: bold;
    font-size: 1.2rem;
}

.ribbon-brand .highlight {
    color: var(--primary-yellow);
}

/* Social Media Styles untuk Top Ribbon - UKURAN KECIL */
.ribbon-social {
    display: flex;
    gap: 8px;
    align-items: center;
}

.social-link {
    color: var(--primary-yellow);
    text-decoration: none;
    font-size: 0.85rem;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    background-color: transparent;
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.social-link:hover {
    color: var(--black);
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
}

/* Existing Styles */
.bg-primary-yellow {
    background-color: var(--primary-yellow) !important;
}

.text-primary-yellow {
    color: var(--primary-yellow) !important;
}

.btn-primary-yellow {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
}

.btn-primary-yellow:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
    color: var(--black);
}

.btn-outline-yellow {
    color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.btn-outline-yellow:hover {
    background-color: var(--primary-yellow);
    color: var(--black);
}

.border-yellow {
    border-color: var(--primary-yellow) !important;
}

/* Headline Styles */
.headline-section {
    background: linear-gradient(135deg, #ffd700 0%, #ffc107 100%);
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.headline-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.headline-subtitle {
    font-size: 1.5rem;
    color: #333;
    max-width: 800px;
    margin: 0 auto;
}

.highlight-text {
    color: #d40000;
    font-weight: bold;
}

/* Simple Card Styles */
.simple-card {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 1.2rem;
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.simple-card:hover {
    border-color: var(--primary-yellow);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.card-header {
    margin-bottom: 0.8rem;
}

.card-title {
    font-weight: 600;
    color: var(--black);
    font-size: 1.1rem;
    margin: 0 0 0.3rem 0;
}

.card-level {
    color: var(--dark-gray);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.card-body {
    flex-grow: 1;
    margin-bottom: 1rem;
}

.card-description {
    color: var(--dark-gray);
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.card-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}

.detail-item i {
    color: var(--primary-yellow);
    width: 16px;
}

.detail-item .label {
    color: var(--dark-gray);
    min-width: 60px;
}

.detail-item .value {
    color: var(--black);
    font-weight: 500;
}

.card-footer {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 0.8rem;
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-price {
    color: #28a745;
    font-weight: 600;
    font-size: 1rem;
}

.btn-card-register {
    background-color: var(--primary-yellow);
    color: var(--black);
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-card-register:hover {
    background-color: var(--dark-yellow);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Grid Layout for Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
}

/* CTA Card Styles */
.cta-card {
    background: linear-gradient(135deg, var(--black) 0%, #343a40 100%);
    color: white;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .headline-section {
        padding: 2rem 0;
    }

    .headline-title {
        font-size: 2rem;
    }

    .headline-subtitle {
        font-size: 1.2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .simple-card {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .headline-title {
        font-size: 1.6rem;
    }

    .headline-subtitle {
        font-size: 1rem;
    }

    .card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .btn-card-register {
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Main Tabs Styles */
.main-tabs {
    border-bottom: 2px solid #dee2e6;
    margin-bottom: 2rem;
}

.main-tabs .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    border: none;
    padding: 0.1rem 1.5rem;
    margin: 0 0.5rem;
    border-radius: 0;
    position: relative;
}

.main-tabs .nav-link:hover {
    color: var(--black);
    border: none;
}

.main-tabs .nav-link.active {
    color: var(--black);
    background: transparent;
    border: none;
    font-weight: bold;
}

.main-tabs .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background-color: var(--primary-yellow);
}

/* Sub Tabs Styles - DIUBAH: Rata Tengah */
.sub-tabs {
    border-bottom: 1px solid #dee2e6;
    margin: 1.5rem 0;
    justify-content: center !important;
}

.sub-tabs .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    border: none;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    border-radius: 4px;
    font-size: 0.9rem;
}

.sub-tabs .nav-link:hover {
    color: var(--black);
    background-color: rgba(255, 215, 0, 0.1);
}

.sub-tabs .nav-link.active {
    color: var(--black);
    background-color: rgba(255, 215, 0, 0.2);
    font-weight: bold;
}

/* Inner Sub Tabs Styles (Level 3) - DIUBAH: Desain Pills */
.inner-sub-tabs {
    margin: 1.5rem 0 1rem 0;
    justify-content: center !important;
}

.inner-sub-tabs.nav-pills .nav-link {
    color: var(--dark-gray);
    font-weight: 500;
    border: 1px solid #dee2e6;
    padding: 0.4rem 1rem;
    margin: 0 0.25rem 0.5rem 0.25rem;
    border-radius: 50px;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    background-color: white;
}

.inner-sub-tabs.nav-pills .nav-link:hover {
    color: var(--black);
    background-color: rgba(255, 215, 0, 0.1);
    border-color: var(--primary-yellow);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.inner-sub-tabs.nav-pills .nav-link.active {
    color: var(--black);
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(255, 215, 0, 0.3);
}

/* Program Info Styles */
.program-info {
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.program-info h3 {
    color: var(--black);
    margin-bottom: 0.5rem;
}

.program-info p {
    color: var(--dark-gray);
    margin-bottom: 0;
}

/* Ribbon Responsive */
@media (max-width: 768px) {
    .ribbon-content {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .ribbon-social {
        gap: 6px;
    }

    .social-link {
        width: 26px;
        height: 26px;
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .ribbon-social {
        gap: 5px;
    }

    .social-link {
        width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }

    .main-tabs .nav-link {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
        margin: 0 0.25rem;
    }

    .sub-tabs .nav-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
        margin: 0 0.15rem;
    }

    .inner-sub-tabs.nav-pills .nav-link {
        padding: 0.3rem 0.8rem;
        font-size: 0.8rem;
        margin: 0 0.15rem 0.4rem 0.15rem;
    }
}

/* Counter Badge */
.counter-badge {
    background-color: var(--primary-yellow);
    color: var(--black);
    font-size: 0.7rem;
    font-weight: bold;
    padding: 0.2rem 0.5rem;
    border-radius: 10px;
    margin-left: 0.5rem;
}

/* Pills Counter Badge */
.inner-sub-tabs.nav-pills .nav-link.active .counter-badge {
    background-color: var(--black);
    color: var(--primary-yellow);
}

/* Modal Styles */
.modal-header {
    background-color: var(--black);
    color: white;
    border-bottom: 2px solid var(--primary-yellow);
}

.modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.form-label {
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-control,
.form-select {
    border: 1px solid #dee2e6;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-yellow);
    box-shadow: 0 0 0 0.25rem rgba(255, 215, 0, 0.25);
}

.program-detail-box {
    background-color: rgba(255, 215, 0, 0.1);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.program-detail-box h5 {
    color: var(--black);
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.program-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.85rem;
}

.program-detail-item:last-child {
    border-bottom: none;
}

.program-detail-label {
    color: var(--dark-gray);
    font-weight: 500;
}

.program-detail-value {
    color: var(--black);
    font-weight: 600;
    text-align: right;
}

.program-detail-value.price {
    color: #28a745;
    font-size: 1rem;
}

.btn-submit {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
    color: var(--black);
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--dark-yellow);
    border-color: var(--dark-yellow);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-submit:disabled {
    background-color: #e9ecef;
    border-color: #dee2e6;
    color: #6c757d;
    cursor: not-allowed;
}

.required-field::after {
    content: " *";
    color: #dc3545;
}

.form-text {
    font-size: 0.8rem;
    color: var(--dark-gray);
    margin-top: 0.25rem;
}

.form-section-title {
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    margin: 1.5rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-yellow);
}

.form-section-title:first-child {
    margin-top: 0;
}

.modal-body {
    max-height: 70vh;
    overflow-y: auto;
    padding-right: 10px;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-yellow);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--dark-yellow);
}

.form-check-input:checked {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

.time-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.time-option {
    flex: 1;
    min-width: 120px;
}

.time-option .form-check-input {
    margin-top: 0.3rem;
}

.time-option label {
    font-size: 0.85rem;
    cursor: pointer;
}

/* Syarat dan Ketentuan Styles - PERBAIKAN BESAR */
.terms-content {
    max-height: 500px;
    overflow-y: auto;
    padding: 20px;
    border: 2px solid #dee2e6;
    border-radius: 10px;
    background-color: white;
    margin-bottom: 25px;
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
}

.terms-content h5 {
    color: var(--black);
    margin-top: 1.8rem;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 700;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.terms-content h5:first-child {
    margin-top: 0.5rem;
}

.terms-content h6 {
    color: #444;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    padding-left: 0.5rem;
    border-left: 3px solid var(--primary-yellow);
}

.terms-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1.2rem;
}

.terms-content ul ul {
    margin-left: 1.8rem;
    margin-top: 0.6rem;
    margin-bottom: 0.6rem;
}

.terms-content ul ul li {
    list-style-type: circle;
    margin-bottom: 0.3rem;
}

.terms-content li {
    margin-bottom: 0.6rem;
    line-height: 1.6;
}

.terms-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    text-align: justify;
}

.terms-content strong {
    color: var(--black);
    font-weight: 700;
    background-color: rgba(255, 215, 0, 0.1);
    padding: 0 3px;
}

.terms-content .highlight-box {
    background-color: rgba(255, 215, 0, 0.08);
    border-left: 4px solid var(--primary-yellow);
    padding: 15px;
    margin: 15px 0;
    border-radius: 5px;
    font-style: italic;
}

.terms-content .important-note {
    background-color: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.2);
    padding: 12px;
    margin: 15px 0;
    border-radius: 5px;
    font-weight: 600;
}

.terms-content .section-divider {
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            var(--primary-yellow),
            transparent);
    margin: 20px 0;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.terms-checkbox-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
}

.form-check-input:checked {
    background-color: var(--primary-yellow);
    border-color: var(--primary-yellow);
}

@media (max-width: 768px) {
    .time-options {
        flex-direction: column;
    }

    .time-option {
        min-width: 100%;
    }

    .terms-content {
        max-height: 400px;
        font-size: 0.95rem;
        padding: 15px;
    }

    .terms-content h5 {
        font-size: 1.1rem;
        margin-top: 1.5rem;
    }

    .terms-content h6 {
        font-size: 1rem;
        margin-top: 1.2rem;
    }
}

@media (max-width: 576px) {
    .terms-content {
        max-height: 350px;
        font-size: 0.9rem;
        padding: 12px;
    }

    .terms-content h5 {
        font-size: 1rem;
    }

    .terms-content h6 {
        font-size: 0.95rem;
    }
}

/* Improved checkbox styling */
.form-check {
    padding-left: 2.5rem;
}

.form-check-input {
    width: 1.4rem;
    height: 1.4rem;
    margin-left: -2.5rem;
    margin-top: 0.25rem;
}

.form-check-label {
    padding-left: 0.5rem;
}