/* styles.css - Betacal Pro Plus Premium Sale Page */

@import url('https://fonts.googleapis.com/css2?family=Prompt:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
    --primary: #d45b00;      /* Vibrant Orange from Betacal box */
    --primary-light: #f37b22;
    --primary-dark: #aa4200;
    --secondary: #d4a017;    /* Premium Gold */
    --secondary-dark: #b38600;
    --accent: #2e7d32;       /* Success green for orders */
    
    --bg-dark: #1a1510;      /* Elegant dark warm mode sections */
    --bg-light: #fefaf6;     /* Soft warm peach/cream background */
    --text-dark: #222222;
    --text-light: #ffffff;
    --text-gray: #666666;
    
    --font: 'Prompt', sans-serif;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 8px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 32px rgba(212, 91, 0, 0.12);
    
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

/* Typography Utilities */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.gradient-text {
    background: linear-gradient(135deg, var(--primary) 30%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    background: linear-gradient(120deg, rgba(212, 91, 0, 0.15) 0%, rgba(212, 91, 0, 0.3) 100%);
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

/* Sections */
section {
    padding: 80px 20px;
    position: relative;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* Top Sticky Alert */
.top-bar {
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    color: var(--text-light);
    padding: 10px 20px;
    font-weight: 500;
    font-size: 14px;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
}

.top-bar-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.top-bar-badge {
    background-color: var(--secondary);
    color: var(--text-dark);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
    animation: flash 1.5s infinite;
}

/* Header */
header {
    background: rgba(254, 250, 246, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 91, 0, 0.1);
    padding: 15px 20px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.logo img {
    height: 45px;
    object-fit: contain;
}

.header-badges {
    display: flex;
    gap: 10px;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(212, 91, 0, 0.05);
    padding: 6px 12px;
    border-radius: 50px;
    border: 1px solid rgba(212, 91, 0, 0.1);
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, rgba(212, 91, 0, 0.06), transparent 60%),
                radial-gradient(circle at bottom left, rgba(212, 91, 0, 0.04), transparent 60%),
                var(--bg-light);
    padding-top: 50px;
    padding-bottom: 60px;
}

.hero-tag {
    background-color: rgba(212, 91, 0, 0.1);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    color: var(--primary-dark);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 700px;
}

/* Video Section styling */
.video-wrapper {
    background: #000;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--secondary);
    margin-bottom: 40px;
    aspect-ratio: 16/9;
    position: relative;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Problem section */
.problems {
    background-color: #f6efe6;
}

.problems h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-gray);
    margin-bottom: 50px;
    font-size: 18px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.problem-card {
    background-color: var(--text-light);
    border-radius: var(--radius-md);
    padding: 30px;
    box-shadow: var(--shadow-sm);
    border-left: 5px solid var(--primary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.problem-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 36px;
    margin-bottom: 15px;
    display: block;
}

.problem-card h3 {
    margin-bottom: 10px;
    color: var(--primary-dark);
}

/* Solution section */
.solution {
    background-color: var(--bg-light);
}

.solution-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 50px;
    align-items: center;
}

.solution-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.solution-image img.main-product {
    width: 90%;
    max-width: 350px;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.15));
    animation: float 4s ease-in-out infinite;
}

.solution-image img.bg-glow {
    position: absolute;
    z-index: -1;
    width: 120%;
    opacity: 0.15;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.solution-content h2 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 25px;
}

.solution-points {
    list-style: none;
    margin-bottom: 35px;
}

.solution-points li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.solution-check {
    background-color: var(--primary);
    color: var(--text-light);
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 3px;
}

.solution-points h4 {
    font-size: 17px;
    color: var(--primary-dark);
}

.solution-points p {
    color: var(--text-gray);
    font-size: 14px;
}

/* Trust Section (วช. / Awards) */
.trust {
    background-color: var(--bg-dark);
    color: var(--text-light);
    text-align: center;
}

.trust h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

.award-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) rgba(255,255,255,0.1);
}

.award-card {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 20px;
    min-width: 280px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.award-card img {
    height: 180px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.award-title {
    font-size: 16px;
    font-weight: 600;
}

.fda-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background-color: rgba(255,255,255,0.05);
    border: 1px dashed var(--secondary);
    padding: 15px 30px;
    border-radius: 50px;
    margin-top: 50px;
}

.fda-logo {
    font-weight: 800;
    font-size: 24px;
    color: #4a90e2;
    background: #fff;
    padding: 2px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
}

.fda-num {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary);
}

/* Reviews Section */
.reviews {
    background-color: #f6efe6;
}

.reviews h2 {
    font-size: 32px;
    margin-bottom: 40px;
}

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

.review-image-card {
    background-color: var(--text-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.05);
}

.review-image-card img {
    width: 100%;
    height: auto;
    display: block;
}

/* Pricing / Packages Section */
.pricing {
    background: linear-gradient(180deg, var(--bg-light) 0%, #f6efe6 100%);
}

.pricing h2 {
    font-size: 36px;
    margin-bottom: 10px;
}

.pricing-sub {
    font-size: 18px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 50px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
    margin-bottom: 60px;
}

.package-card {
    background-color: var(--text-light);
    border-radius: var(--radius-lg);
    border: 2px solid rgba(0,0,0,0.05);
    padding: 40px 30px;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.package-card.popular {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: scale(1.03);
}

.package-card.popular::before {
    content: "คุ้มค่าที่สุด ยอดขายอันดับ 1";
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--secondary), #f57c00);
    color: var(--text-dark);
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
}

.package-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.package-card.popular:hover {
    transform: translateY(-5px) scale(1.03);
}

.package-title {
    font-size: 22px;
    color: var(--primary-dark);
    margin-bottom: 15px;
}

.package-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 25px;
}

.package-image-container {
    height: 180px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 25px;
}

.package-image-container img {
    max-height: 100%;
    max-width: 90%;
    object-fit: contain;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.08));
}

.package-price {
    margin-bottom: 25px;
}

.price-original {
    text-decoration: line-through;
    color: var(--text-gray);
    font-size: 16px;
}

.price-actual {
    font-size: 42px;
    font-weight: 800;
    color: var(--primary);
}

.price-actual span {
    font-size: 20px;
    font-weight: 600;
}

.package-features {
    list-style: none;
    text-align: left;
    margin-bottom: 35px;
    padding-left: 10px;
}

.package-features li {
    font-size: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.package-features li::before {
    content: "✓";
    color: var(--primary);
    font-weight: 700;
}

.btn-select-package {
    background-color: var(--primary);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(212, 91, 0, 0.2);
}

.btn-select-package:hover {
    background-color: var(--primary-light);
}

.package-card.popular .btn-select-package {
    background-color: var(--secondary);
    color: var(--text-dark);
    box-shadow: 0 4px 6px rgba(212, 160, 23, 0.3);
}

.package-card.popular .btn-select-package:hover {
    background-color: #e5b026;
}

/* Shipping Hooks / Trust icons */
.shipping-hook {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 30px 20px;
    border-radius: var(--radius-md);
    margin-top: 40px;
    box-shadow: var(--shadow-md);
}

.shipping-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}

.shipping-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.shipping-icon {
    font-size: 32px;
}

.shipping-text h4 {
    font-size: 16px;
    margin-bottom: 4px;
    color: var(--secondary);
}

.shipping-text p {
    font-size: 13px;
    opacity: 0.8;
}

/* Checkout Form Section */
.checkout {
    background-color: #f6efe6;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.checkout-card {
    background-color: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.checkout-info {
    background-color: var(--primary-dark);
    color: var(--text-light);
    padding: 50px;
    background-image: linear-gradient(135deg, var(--primary-dark), #5a2700);
}

.checkout-info h3 {
    font-size: 28px;
    margin-bottom: 25px;
    color: var(--secondary);
}

.order-summary-box {
    background-color: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 30px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
}

.summary-row.total {
    border-top: 1px dashed rgba(255,255,255,0.2);
    padding-top: 15px;
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary);
}

.checkout-form-side {
    padding: 50px;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 15px;
    color: var(--text-dark);
}

.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    transition: border-color 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    outline: none;
    border-color: var(--primary);
    background-color: #fff;
}

.form-group textarea {
    height: 100px;
    resize: none;
}

/* Custom radio packages in form */
.form-packages {
    display: grid;
    gap: 12px;
    margin-bottom: 25px;
}

.form-package-option {
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-package-option.selected {
    border-color: var(--primary);
    background-color: rgba(212, 91, 0, 0.03);
}

.form-package-option input[type="radio"] {
    width: auto;
    accent-color: var(--primary);
    transform: scale(1.2);
}

.option-details {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.option-title {
    font-weight: 600;
    font-size: 15px;
}

.option-price {
    font-weight: 700;
    color: var(--primary);
}

/* Submit Button */
.btn-submit {
    background: linear-gradient(135deg, #2e7d32, #1b5e20); /* Safe Green */
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 16px 40px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 125, 50, 0.4);
}

.btn-submit:active {
    transform: translateY(1px);
}

/* Pulsing effect on CTA */
.pulse-element {
    animation: pulse 2s infinite;
}

/* Sticky Bottom Mobile Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    display: none;
    z-index: 999;
}

.mobile-sticky-btn {
    background-color: var(--primary);
    color: var(--text-light);
    width: 100%;
    border: none;
    padding: 14px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(212, 91, 0, 0.3);
}

/* Modal Popup */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 500px;
    padding: 40px;
    text-align: center;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-lg);
}

.modal.active .modal-content {
    transform: scale(1);
}

.success-icon {
    width: 80px;
    height: 80px;
    background-color: rgba(46, 125, 50, 0.1);
    color: var(--accent);
    font-size: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    margin: 0 auto 20px;
}

.modal h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.modal p {
    color: var(--text-gray);
    font-size: 15px;
    margin-bottom: 30px;
}

.btn-modal-close {
    background-color: var(--accent);
    color: var(--text-light);
    border: none;
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    width: 100%;
}

/* FAQ Section */
.faq {
    background-color: var(--bg-light);
}

.faq-title {
    font-size: 32px;
    margin-bottom: 40px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #fafafa;
}

.faq-question::after {
    content: "+";
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    content: "−";
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: var(--text-gray);
    font-size: 15px;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 200px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Footer */
footer {
    background-color: #1a1510;
    color: #999;
    padding: 40px 20px;
    text-align: center;
    font-size: 13px;
    border-top: 2px solid var(--primary);
}

footer p {
    margin-bottom: 15px;
}

footer .disclaimer {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 12px;
    line-height: 1.8;
}

footer a {
    color: var(--secondary);
    text-decoration: none;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes flash {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Media Queries */
@media (max-width: 900px) {
    .solution-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto 40px;
    }
    
    .package-card.popular {
        transform: none;
    }
    
    .package-card.popular:hover {
        transform: translateY(-5px);
    }
    
    .checkout-card {
        grid-template-columns: 1fr;
    }
    
    .checkout-info {
        padding: 30px;
    }
    
    .checkout-form-side {
        padding: 30px;
    }
}

@media (max-width: 600px) {
    section {
        padding: 50px 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .shipping-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        text-align: left;
    }
    
    .shipping-item {
        flex-direction: row;
        gap: 15px;
    }
    
    .mobile-sticky-bar {
        display: block;
    }
    
    body {
        padding-bottom: 70px; /* Space for sticky bar */
    }
    
    .fda-badge {
        flex-direction: column;
        gap: 10px;
        padding: 15px 20px;
        border-radius: 20px;
        width: 100%;
    }
}
