/**
 * Dogology Commerce - Frontend Styles
 */

:root {
    --dc-primary: #0099CC;
    --dc-primary-dark: #007399;
    --dc-success: #28a745;
    --dc-warning: #ffc107;
    --dc-danger: #dc3545;
    --dc-gray-100: #f8f9fa;
    --dc-gray-200: #e9ecef;
    --dc-gray-300: #dee2e6;
    --dc-gray-600: #6c757d;
    --dc-gray-800: #343a40;
    --dc-font-thai: 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Container */
.dogology-commerce {
    font-family: var(--dc-font-thai);
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    color: var(--dc-gray-800);
}

/* Registration Form */
.dc-register-form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dc-product-header {
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-primary-dark));
    color: #fff;
    padding: 24px;
    text-align: center;
}

.dc-product-image {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    margin-bottom: 12px;
    object-fit: cover;
}

.dc-product-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 8px 0;
}

.dc-product-price {
    font-size: 28px;
    font-weight: 700;
}

.dc-product-price-original {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.7;
    margin-right: 8px;
}

.dc-form-body {
    padding: 24px;
}

/* Cohort Selection */
.dc-cohort-list {
    margin-bottom: 20px;
}

.dc-cohort-option {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    border: 2px solid var(--dc-gray-200);
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.dc-cohort-option:hover {
    border-color: var(--dc-primary);
}

.dc-cohort-option.selected {
    border-color: var(--dc-primary);
    background: rgba(0, 153, 204, 0.05);
}

.dc-cohort-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dc-cohort-option input[type="radio"] {
    margin-right: 12px;
    transform: scale(1.2);
}

.dc-cohort-info {
    flex: 1;
}

.dc-cohort-name {
    font-weight: 600;
    margin-bottom: 2px;
}

.dc-cohort-date {
    font-size: 13px;
    color: var(--dc-gray-600);
}

.dc-cohort-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 20px;
}

.dc-cohort-status.open {
    background: #d4edda;
    color: #155724;
}

.dc-cohort-status.low {
    background: #fff3cd;
    color: #856404;
}

.dc-cohort-status.full {
    background: #f8d7da;
    color: #721c24;
}

/* Form Fields */
.dc-field {
    margin-bottom: 18px;
}

.dc-field label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    font-size: 14px;
}

.dc-field input,
.dc-field select,
.dc-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--dc-gray-200);
    border-radius: 10px;
    font-size: 16px;
    font-family: var(--dc-font-thai);
    transition: border-color 0.2s;
}

.dc-field input:focus,
.dc-field select:focus,
.dc-field textarea:focus {
    outline: none;
    border-color: var(--dc-primary);
}

.dc-field input:read-only {
    background: var(--dc-gray-100);
    color: var(--dc-gray-600);
}

.dc-field-hint {
    font-size: 12px;
    color: var(--dc-gray-600);
    margin-top: 4px;
}

/* Discount Code */
.dc-discount-toggle {
    color: var(--dc-primary);
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 10px;
}

.dc-discount-field {
    display: none;
}

.dc-discount-field.show {
    display: block;
}

.dc-discount-input-group {
    display: flex;
    gap: 10px;
}

.dc-discount-input-group input {
    flex: 1;
}

.dc-discount-input-group button {
    padding: 14px 20px;
    background: var(--dc-gray-200);
    border: none;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
}

.dc-discount-result {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.dc-discount-result.valid {
    color: var(--dc-success);
}

.dc-discount-result.invalid {
    color: var(--dc-danger);
}

/* Submit Button */
.dc-submit-btn {
    width: 100%;
    padding: 16px;
    background: var(--dc-primary);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    font-family: var(--dc-font-thai);
}

.dc-submit-btn:hover {
    background: var(--dc-primary-dark);
}

.dc-submit-btn:disabled {
    background: var(--dc-gray-300);
    cursor: not-allowed;
}

/* Payment Page */
.dc-payment-page {
    text-align: center;
}

.dc-payment-timer {
    background: var(--dc-warning);
    color: var(--dc-gray-800);
    padding: 12px;
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 10;
}

.dc-payment-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    margin-top: 20px;
}

.dc-payment-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--dc-primary);
    margin: 20px 0;
}

.dc-qr-code {
    max-width: 250px;
    margin: 20px auto;
    padding: 16px;
    background: #fff;
    border: 2px solid var(--dc-gray-200);
    border-radius: 12px;
}

.dc-qr-code img {
    width: 100%;
    height: auto;
}

.dc-bank-info {
    background: var(--dc-gray-100);
    padding: 16px;
    border-radius: 10px;
    margin: 20px 0;
}

.dc-bank-name {
    font-weight: 600;
    margin-bottom: 4px;
}

.dc-bank-account {
    font-size: 18px;
    font-family: monospace;
    letter-spacing: 1px;
}

.dc-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--dc-gray-200);
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    margin-top: 8px;
}

.dc-copy-btn.copied {
    background: var(--dc-success);
    color: #fff;
}

/* Instructions */
.dc-instructions {
    text-align: left;
    margin: 20px 0;
}

.dc-instructions h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.dc-instructions ol {
    padding-left: 20px;
    line-height: 1.8;
}

/* Slip Upload */
.dc-upload-area {
    border: 2px dashed var(--dc-gray-300);
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}

.dc-upload-area:hover {
    border-color: var(--dc-primary);
    background: rgba(0, 153, 204, 0.02);
}

.dc-upload-area.has-file {
    border-style: solid;
    border-color: var(--dc-success);
}

.dc-upload-icon {
    font-size: 48px;
    color: var(--dc-gray-300);
    margin-bottom: 12px;
}

.dc-upload-preview {
    max-width: 200px;
    max-height: 200px;
    margin: 0 auto 12px;
    border-radius: 8px;
}

.dc-upload-input {
    display: none;
}

/* Success Screen */
.dc-success-screen {
    text-align: center;
    padding: 40px 20px;
}

.dc-success-icon {
    width: 80px;
    height: 80px;
    background: var(--dc-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.3s ease;
}

.dc-success-icon svg {
    width: 40px;
    height: 40px;
    color: #fff;
}

@keyframes scaleIn {
    0% {
        transform: scale(0);
    }

    100% {
        transform: scale(1);
    }
}

.dc-success-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.dc-success-message {
    color: var(--dc-gray-600);
    line-height: 1.6;
    margin-bottom: 24px;
}

/* Survey Form */
.dc-survey {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
}

.dc-survey-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

.dc-checkbox-group {
    margin-bottom: 24px;
}

.dc-checkbox-group-title {
    font-weight: 600;
    margin-bottom: 12px;
    font-size: 15px;
}

.dc-checkbox-option {
    display: flex;
    align-items: flex-start;
    padding: 12px 14px;
    border: 1px solid var(--dc-gray-200);
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.dc-checkbox-option:hover {
    background: var(--dc-gray-100);
}

.dc-checkbox-option input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 2px;
    transform: scale(1.1);
}

.dc-checkbox-label {
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
}

.dc-other-input {
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid var(--dc-gray-300);
    border-radius: 6px;
    font-size: 14px;
}

/* Province Dropdown */
.dc-province-select {
    position: relative;
}

.dc-province-search {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--dc-gray-200);
    border-radius: 10px;
    font-size: 16px;
}

.dc-province-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--dc-gray-200);
    border-radius: 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.dc-province-dropdown.show {
    display: block;
}

.dc-province-option {
    padding: 12px 16px;
    cursor: pointer;
}

.dc-province-option:hover {
    background: var(--dc-gray-100);
}

/* Loading */
.dc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.dc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dc-gray-200);
    border-top-color: var(--dc-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Responsive */
@media (max-width: 480px) {
    .dogology-commerce {
        padding: 0;
    }

    .dc-register-form {
        border-radius: 0;
    }
}

/* ==========================================================================
   101 Landing Page Styles
   ========================================================================== */

.dc-101-landing {
    font-family: var(--dc-font-thai);
    color: var(--dc-gray-800);
    line-height: 1.7;
}

.dc-101-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.dc-101-hero {
    background: linear-gradient(135deg, #0099CC 0%, #00BFAD 100%);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
}

.dc-101-hero-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 20px;
}

.dc-101-hero-title span {
    display: block;
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 10px;
}

.dc-101-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.dc-101-cta {
    display: inline-block;
    background: #fff;
    color: var(--dc-primary);
    padding: 16px 40px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dc-101-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Philosophy Section */
.dc-101-philosophy {
    padding: 60px 20px;
    background: #f8f9fa;
    text-align: center;
}

.dc-101-philosophy h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dc-primary);
}

.dc-101-philosophy>.dc-101-container>p {
    color: var(--dc-gray-800);
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.2rem;
    font-weight: 400;
}

.dc-101-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.dc-101-pillar {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.dc-101-pillar-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.dc-101-pillar h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dc-gray-800);
}

.dc-101-pillar p {
    font-size: 1.1rem;
    color: #222;
    margin: 0;
    line-height: 1.6;
}

/* Course Info Section */
.dc-101-course-info {
    padding: 60px 20px;
}

.dc-101-info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
}

.dc-101-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.dc-101-info-card h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.dc-101-info-card>p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.dc-101-features {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.dc-101-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 1.2rem;
}

.dc-101-features li:last-child {
    border-bottom: none;
}

/* Modules Section */
.dc-101-modules {
    padding: 60px 20px;
    background: #f8f9fa;
}

.dc-101-modules h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
    color: var(--dc-primary);
}

.dc-101-module {
    background: #fff;
    border-radius: 16px;
    margin-bottom: 20px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dc-101-module-header {
    display: flex;
    align-items: center;
    padding: 20px 25px;
    gap: 20px;
}

.dc-101-module-num {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dc-primary);
    opacity: 0.3;
}

.dc-101-module-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--dc-gray-800);
}

.dc-101-module-content {
    padding: 0 25px 25px 65px;
}

.dc-101-module-content ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dc-101-module-content li {
    padding: 8px 0;
    color: #222;
    font-size: 1.1rem;
    position: relative;
    padding-left: 20px;
    line-height: 1.6;
}

.dc-101-module-content li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--dc-primary);
}

/* Audience Section */
.dc-101-audience {
    padding: 60px 20px;
}

.dc-101-audience h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 40px;
}

.dc-101-audience-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.dc-101-audience-card {
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    text-align: center;
    border: 2px solid var(--dc-gray-200);
    transition: all 0.3s ease;
}

.dc-101-audience-card:hover {
    border-color: var(--dc-primary);
    transform: translateY(-5px);
}

.dc-101-audience-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.dc-101-audience-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.dc-101-audience-card p {
    font-size: 1.1rem;
    color: #222;
    margin: 0;
    line-height: 1.6;
}

/* Pricing Section */
.dc-101-pricing {
    padding: 60px 20px;
    background: linear-gradient(135deg, #0099CC 0%, #00BFAD 100%);
}

.dc-101-price-card {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.dc-101-price-badge {
    display: inline-block;
    background: var(--dc-success);
    color: #fff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.dc-101-price {
    margin-bottom: 25px;
}

.dc-101-price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dc-primary);
    vertical-align: top;
}

.dc-101-price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--dc-primary);
}

.dc-101-price-includes {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
    text-align: left;
}

.dc-101-price-includes li {
    padding: 12px 0;
    border-bottom: 1px solid var(--dc-gray-200);
    color: #222;
    font-size: 1.2rem;
}

.dc-101-price-includes li:last-child {
    border-bottom: none;
}

.dc-101-free-offer {
    background: #fff8e6;
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.dc-101-free-offer span {
    font-size: 1.5rem;
}

.dc-101-free-offer p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dc-gray-800);
}

/* Registration Section */
.dc-101-register {
    padding: 60px 20px;
    background: #f8f9fa;
}

.dc-101-register h2 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 30px;
}

.dc-101-no-product {
    text-align: center;
    color: var(--dc-gray-600);
    padding: 40px;
    background: #fff;
    border-radius: 12px;
}

.dc-101-contact {
    text-align: center;
    margin-top: 30px;
    color: var(--dc-gray-600);
}

.dc-101-contact a {
    color: var(--dc-primary);
    font-weight: 600;
}

/* Instructor Section */
.dc-101-instructor {
    padding: 60px 20px;
    text-align: center;
}

.dc-101-instructor h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.dc-101-instructor p {
    color: var(--dc-gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .dc-101-hero {
        padding: 60px 20px;
    }

    .dc-101-hero-title {
        font-size: 1.5rem;
    }

    .dc-101-hero-title span {
        font-size: 1rem;
    }

    .dc-101-info-card {
        padding: 30px 20px;
    }

    .dc-101-info-card h2 {
        font-size: 1.4rem;
    }

    .dc-101-module-content {
        padding-left: 25px;
    }

    .dc-101-price-card {
        padding: 30px 20px;
    }

    .dc-101-price-amount {
        font-size: 2.5rem;
    }
}

/* =========================================
   101 - Testimonials & LIFF Styles
   ========================================= */
/* Note: Fonts are loaded by theme, no @import needed here */

/* LIFF-specific styles */
.liff-in-app .dc-101-landing {
    padding-bottom: 20px;
}

.liff-in-app .dc-101-contact a[href*="line.me"] {
    display: none;
}

/* Testimonials CSS */
.dc-101-testimonials {
    padding: 60px 0;
    background: #f8f9fa;
    overflow: hidden;
    /* Hide scrollbar for infinite effect */
}

.dc-101-testimonials h2.dc-101-section-title {
    text-align: center;
    margin-bottom: 40px;
    color: #44403c;
    font-size: 28px;
    font-weight: 700;
}

@media (min-width: 768px) {
    .dc-101-testimonials h2.dc-101-section-title {
        font-size: 36px;
    }
}

.dc-101-testimonial-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* Firefox */
}

.dc-101-testimonial-wrapper::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.dc-101-testimonial-track {
    display: grid;
    grid-template-rows: repeat(2, auto);
    /* 2 rows on mobile */
    grid-auto-flow: column;
    gap: 20px;
    width: max-content;
    /* Ensure track spans all items */
    padding-left: 20px;
    /* Left padding so first card is fully visible */
}

.dc-101-testimonial-card {
    width: 300px;
    /* Fixed width for smooth grid */
    max-width: none;
    /* Override previous */
    background: #fff;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

/* Highlight Styling for First Item */
.dc-101-testimonial-card.dc-101-highlight {
    border: 2px solid #0099CC;
    box-shadow: 0 8px 25px rgba(0, 153, 204, 0.15);
    position: relative;
}

.dc-101-testimonial-card.dc-101-highlight::after {
    content: "✨ Highlight";
    position: absolute;
    top: -10px;
    right: 20px;
    background: #0099CC;
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 600;
}

.dc-101-testimonial-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.dc-101-testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.dc-101-testimonial-info h3 {
    font-size: 18px;
    margin: 0;
    color: #333;
    font-family: 'Noto Sans Thai Looped', sans-serif !important;
    font-weight: 600;
}

.dc-101-testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    font-family: 'Noto Sans Thai Looped', sans-serif !important;
}

@media (min-width: 768px) {
    .dc-101-testimonial-track {
        grid-template-rows: 1fr;
        /* Single row on desktop */
        gap: 30px;
    }

    .dc-101-testimonial-card {
        width: 400px;
        /* Larger cards on desktop */
    }
}