/* ==================== GLOBAL STYLES ==================== */

:root {
    --primary-blue: #1e3a8a;
    --light-blue: #3b82f6;
    --success-green: #00c300;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Kanit', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
}

/* Large Desktop */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.text-primary {
    color: var(--primary-blue) !important;
}

/* Buttons */
.btn {
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success-green);
    color: var(--white);
}

.btn-success:hover {
    background: #00b300;
    transform: translateY(-2px);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

/* ==================== BANNER SECTION ==================== */

.banner-section {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #000;
}

/* Advanced Animated Background */
.banner-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Moving gradient orbs */
        radial-gradient(ellipse 800px 400px at 0% 50%, rgba(59, 130, 246, 0.4) 0%, transparent 60%),
        radial-gradient(ellipse 600px 300px at 100% 0%, rgba(147, 51, 234, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 700px 350px at 100% 100%, rgba(0, 195, 0, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 900px 450px at 0% 0%, rgba(236, 72, 153, 0.2) 0%, transparent 60%),
        /* Base gradient */
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 25%, #16213e 50%, #0f3460 75%, #0e2c5a 100%);
    animation: gradientShift 15s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%, 100% 0%, 100% 100%, 0% 0%;
        filter: hue-rotate(0deg);
    }
    25% {
        background-position: 50% 0%, 50% 50%, 50% 50%, 50% 100%;
        filter: hue-rotate(5deg);
    }
    50% {
        background-position: 100% 50%, 0% 100%, 0% 0%, 100% 50%;
        filter: hue-rotate(10deg);
    }
    75% {
        background-position: 50% 100%, 50% 50%, 50% 50%, 50% 0%;
        filter: hue-rotate(5deg);
    }
}

/* Floating geometric shapes */
.banner-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        /* Floating circles */
        radial-gradient(circle 2px at 20% 30%, rgba(59, 130, 246, 0.8) 0%, transparent 50%),
        radial-gradient(circle 3px at 60% 70%, rgba(147, 51, 234, 0.6) 0%, transparent 50%),
        radial-gradient(circle 1.5px at 90% 20%, rgba(0, 195, 0, 0.7) 0%, transparent 50%),
        radial-gradient(circle 2.5px at 40% 80%, rgba(236, 72, 153, 0.5) 0%, transparent 50%),
        radial-gradient(circle 1px at 10% 90%, rgba(59, 130, 246, 0.9) 0%, transparent 50%),
        radial-gradient(circle 2px at 80% 10%, rgba(147, 51, 234, 0.7) 0%, transparent 50%);
    animation: floatShapes 20s linear infinite;
}

@keyframes floatShapes {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
        opacity: 0.7;
    }
    100% {
        transform: translateY(0px) rotate(360deg);
        opacity: 1;
    }
}

/* Grid pattern overlay */
.banner-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 25s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

/* Carousel Container */
.banner-section .carousel {
    z-index: 2;
    position: relative;
    width: 100%;
}

.banner-section .carousel-inner {
    border-radius: 0;
}

.banner-section .carousel-item {
    text-align: center;
    padding: 3rem 0;
}

/* Banner Images - Clean and Modern */
.banner-img {
    max-width: 100%;
    height: auto;
    max-height: 550px;
    object-fit: contain;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.1) contrast(1.05);
}

/* Image entrance animations */
.carousel-item.active .banner-img {
    animation: imageSlideIn 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.carousel-item:not(.active) .banner-img {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
}

@keyframes imageSlideIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(50px);
    }
    60% {
        opacity: 0.8;
        transform: scale(1.02) translateY(-10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: all 0.3s ease;
    margin: 0 2rem;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background: rgba(59, 130, 246, 0.4);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 24px;
    height: 24px;
    background-size: 24px 24px;
    filter: brightness(2);
}

/* Carousel Indicators */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(59, 130, 246, 0.6);
    transition: all 0.3s ease;
}

.carousel-indicators .active {
    background: rgba(59, 130, 246, 0.9);
    transform: scale(1.2);
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.scroll-indicator span {
    font-size: 0.9rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 300;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Banner Section Responsive Styles */
/* Desktop - Full experience */
@media (min-width: 1200px) {
    .banner-section {
        min-height: 85vh; /* Only on desktop */
    }
    
    .banner-img {
        max-height: 600px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 70px;
        height: 70px;
        margin: 0 3rem;
    }
    
    .carousel-item {
        padding: 4rem 0;
    }
}

/* Large Tablet - Reduced height */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .banner-section {
        min-height: 70vh;
    }
    
    .banner-img {
        max-height: 500px;
    }
    
    .carousel-item {
        padding: 3rem 0;
    }
}

/* Tablet - Content-based height */
@media (min-width: 768px) and (max-width: 991.98px) {
    .banner-section {
        min-height: auto; /* Content-based */
    }
    
    .banner-img {
        max-height: 400px;
    }
    
    .carousel-item {
        padding: 2rem 0;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        margin: 0 1rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
        background-size: 20px 20px;
    }
    
    .banner-background::after {
        background-size: 40px 40px;
    }
}

/* Mobile - Pure content-based sizing */
@media (max-width: 767.98px) {
    .banner-section {
        max-height: 500px;
    }
    
    .banner-img {
        max-height: 280px; /* Small image for mobile */
        margin: 0 1rem;
    }
    
    .carousel-item {
        padding: 1.5rem 0; /* Minimal padding */
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 45px;
        height: 45px;
        margin: 0 0.5rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 18px;
        height: 18px;
        background-size: 18px 18px;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .scroll-indicator {
        bottom: 10px;
        font-size: 0.8rem;
    }
    
    .scroll-indicator i {
        font-size: 1rem;
    }
    
    /* Simplified background for mobile performance */
    .banner-background {
        background: 
            radial-gradient(ellipse 400px 200px at 0% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 60%),
            radial-gradient(ellipse 300px 150px at 100% 100%, rgba(147, 51, 234, 0.2) 0%, transparent 60%),
            linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0e2c5a 100%);
    }
    
    .banner-background::after {
        background-size: 30px 30px;
        opacity: 0.3;
    }
}

/* Small Mobile - Even more compact */
@media (max-width: 575.98px) {
    .banner-section {
        max-height: 500px;
        padding-top: 70px;
        padding-bottom: 1rem;
    }
    
    .banner-img {
        max-height: 240px; /* Very compact */
        margin: 0 0.5rem;
    }
    
    .carousel-item {
        padding: 1rem 0; /* Minimal spacing */
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0 0.25rem;
    }
    
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
        background-size: 16px 16px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 8px;
        height: 8px;
    }
    
    .scroll-indicator {
        display: none; /* Hide to save space */
    }
}

/* Extra Small Mobile - Ultra compact */
@media (max-width: 375px) {
    .banner-section {
        padding-top: 70px;
        padding-bottom: 0.5rem;
    }
    
    .banner-img {
        max-height: 200px; /* Ultra compact */
    }
    
    .carousel-item {
        padding: 0.5rem 0;
    }
}

/* High-performance mode for low-end devices */
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) {
    .banner-background {
        animation: none;
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0e2c5a 100%);
    }
    
    .banner-background::before,
    .banner-background::after {
        display: none;
    }
    
    .carousel-item.active .banner-img {
        animation: none;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* ==================== PRODUCTS SECTION ==================== */

.products-section {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    position: relative;
}

.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 600px 300px at 20% 10%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
        radial-gradient(ellipse 400px 200px at 80% 90%, rgba(30, 58, 138, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.products-header {
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.products-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

.products-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Product Cards */
.product-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--card-accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

/* iPhone Card Styling - Primary Blue */
.product-card:nth-child(1) {
    --card-accent-color: var(--primary-blue);
}

.product-card:nth-child(1):hover {
    box-shadow: 0 10px 25px -3px rgba(30, 58, 138, 0.2);
}

/* iCloud Card Styling - Light Blue */
.product-card:nth-child(2) {
    --card-accent-color: var(--light-blue);
}

.product-card:nth-child(2):hover {
    box-shadow: 0 10px 25px -3px rgba(59, 130, 246, 0.2);
}

/* Product Header */
.product-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.product-icon {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.product-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 100%);
}

/* iPhone Icon - Primary Blue */
.iphone-icon {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

/* iCloud Icon - Light Blue */
.icloud-icon {
    background: linear-gradient(135deg, var(--light-blue) 0%, #2563eb 100%);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.product-badge {
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* iPhone Badge - Success Green (Popular) */
.product-card:nth-child(1) .product-badge {
    background: var(--success-green);
    box-shadow: 0 2px 8px rgba(0, 195, 0, 0.2);
}

/* iCloud Badge - Softer Blue (Flexible Payment) */
.product-card:nth-child(2) .product-badge {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.2);
}

.product-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.product-card:hover .product-badge::before {
    left: 100%;
}

/* Product Body */
.product-body {
    display: flex;
    flex-direction: column;
    height: calc(100% - 80px);
}

.product-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
}

.product-description {
    color: var(--text-light);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

/* Product Features */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    flex: 1;
}

.product-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.product-features li:hover {
    padding-left: 0.25rem;
}

.product-features li i {
    margin-right: 0.75rem;
    font-size: 0.875rem;
    width: 16px;
    transition: all 0.2s ease;
}

/* iPhone Features - Primary Blue */
.product-card:nth-child(1) .product-features li i {
    color: var(--primary-blue);
}

/* iCloud Features - Light Blue */
.product-card:nth-child(2) .product-features li i {
    color: var(--light-blue);
}

/* Product Actions */
.product-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.product-actions .btn {
    flex: 1;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.product-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s;
}

.product-actions .btn:hover::before {
    left: 100%;
}

.product-actions .btn:hover:not(:disabled) {
    transform: translateY(-2px);
}

/* iPhone Card Buttons */
.product-card:nth-child(1) .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1e40af 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25);
}

.product-card:nth-child(1) .btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #1d4ed8 100%);
    box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35);
}

.product-card:nth-child(1) .btn-success {
    background: var(--success-green);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 195, 0, 0.25);
}

.product-card:nth-child(1) .btn-success:hover {
    background: #00b300;
    box-shadow: 0 6px 16px rgba(0, 195, 0, 0.35);
}

/* iCloud Card Buttons */
.product-card:nth-child(2) .btn-primary {
    background: linear-gradient(135deg, var(--light-blue) 0%, #2563eb 100%);
    border: none;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.product-card:nth-child(2) .btn-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.product-card:nth-child(2) .btn-success {
    background: var(--success-green);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 195, 0, 0.25);
}

.product-card:nth-child(2) .btn-success:hover {
    background: #00b300;
    box-shadow: 0 6px 16px rgba(0, 195, 0, 0.35);
}

/* Subtle accent effects */
.product-card:nth-child(1) .product-title::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--primary-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:nth-child(1):hover .product-title::before {
    opacity: 1;
}

.product-card:nth-child(1) .product-title {
    position: relative;
}

.product-card:nth-child(2) .product-title::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 20px;
    background: var(--light-blue);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.product-card:nth-child(2):hover .product-title::before {
    opacity: 1;
}

.product-card:nth-child(2) .product-title {
    position: relative;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .products-title {
        font-size: 2rem;
    }
    
    .product-card {
        padding: 1.5rem;
    }
    
    .product-actions {
        flex-direction: column;
    }
}

@media (max-width: 767.98px) {
    .products-section {
        padding: 60px 0;
    }
    
    .products-title {
        font-size: 1.75rem;
    }
    
    .products-subtitle {
        font-size: 1rem;
    }
    
    .product-card {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .product-icon {
        width: 56px;
        height: 56px;
        font-size: 1.25rem;
    }
    
    .product-title {
        font-size: 1.25rem;
    }
    
    .product-features li {
        font-size: 0.9rem;
    }
}

@media (max-width: 575.98px) {
    .products-header {
        margin-bottom: 2rem;
    }
    
    .products-title {
        font-size: 1.5rem;
    }
    
    .product-header {
        margin-bottom: 1rem;
    }
    
    .product-actions .btn {
        padding: 0.625rem 0.875rem;
        font-size: 0.875rem;
    }
}

/* ==================== ENHANCED CALCULATOR SECTION ==================== */

.calculator-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
}

.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse 800px 400px at 20% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse 600px 300px at 80% 90%, rgba(147, 51, 234, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.calculator-container {
    position: relative;
    z-index: 2;
}

/* Calculator Header */
.calculator-header {
    margin-bottom: 3rem;
}

.calculator-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.calculator-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    font-weight: 400;
}

/* Progress Bar */
.progress-container {
    margin-bottom: 2rem;
}

.progress-bar-wrapper {
    height: 6px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    border-radius: 3px;
    width: 33.33%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
}

.step-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    border: 3px solid rgba(59, 130, 246, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.step-circle i {
    font-size: 1.2rem;
    color: var(--text-light);
    transition: color 0.3s ease;
}

.step-label {
    font-size: 0.9rem;
    color: var(--text-light);
    font-weight: 500;
    text-align: center;
    transition: color 0.3s ease;
}

.progress-step.active .step-circle {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    border-color: var(--primary-blue);
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.progress-step.active .step-circle i {
    color: white;
}

.progress-step.active .step-label {
    color: var(--primary-blue);
    font-weight: 600;
}

.progress-step.completed .step-circle {
    background: var(--success-green);
    border-color: var(--success-green);
}

.progress-step.completed .step-circle i {
    color: white;
}

.progress-step.completed .step-label {
    color: var(--success-green);
}

/* Calculator Card */
.calculator-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: relative;
}

.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    border-radius: 24px;
    z-index: -1;
}

/* Calculator Steps */
.calculator-step {
    display: none;
    animation: fadeInUp 0.5s ease forwards;
}

.calculator-step.active {
    display: block;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.step-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.step-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

/* Form Elements */
.form-label {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}

.form-label.required::after {
    content: '*';
    color: #ef4444;
    margin-left: 0.25rem;
}

.form-label i {
    color: var(--primary-blue);
}

.form-select-modern {
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-family: 'Kanit', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
    min-height: 56px;
}

.form-select-modern:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.15);
    outline: none;
}

.form-select-modern:disabled {
    background-color: #f9fafb;
    color: #9ca3af;
    cursor: not-allowed;
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Condition Grid */
.condition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.condition-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.condition-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--light-blue));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.condition-card:hover::before,
.condition-card.filled::before {
    transform: scaleX(1);
}

.condition-card:hover {
    border-color: var(--light-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.15);
}

.condition-card.filled {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(147, 51, 234, 0.03));
    border-color: var(--light-blue);
}

.condition-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.condition-icon i {
    font-size: 1.3rem;
    color: white;
}

.condition-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.condition-content p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.condition-card .form-select {
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.condition-card .form-select:focus {
    border-color: var(--light-blue);
    box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.1);
}

/* Step Actions */
.step-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    gap: 1rem;
}

.btn-next, .btn-prev, .btn-contact {
    min-width: 160px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    font-size: 1rem;
}

.btn-next:disabled {
    background: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.btn-next:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.btn-prev:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.btn-contact {
    background: var(--success-green);
    color: white;
}

.btn-contact:hover {
    background: #00b300;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 195, 0, 0.3);
}

/* Results */
.result-card {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 2px solid #0ea5e9;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.result-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.result-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.result-icon i {
    font-size: 2rem;
    color: white;
}

.result-price {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.result-subtitle {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.breakdown-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.breakdown-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.breakdown-header i {
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.breakdown-item:last-child {
    border-bottom: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding-top: 1rem;
}

.breakdown-amount {
    font-weight: 600;
    color: var(--text-dark);
}

.breakdown-amount.deduction {
    color: #ef4444;
}

.breakdown-amount.final {
    color: var(--success-green);
    font-size: 1.2rem;
}

/* Not Accepted State */
.result-not-accepted {
    background: linear-gradient(135deg, #fef3f2, #fee2f2);
    border-color: #f87171;
}

.result-not-accepted .result-icon {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.result-not-accepted .result-price {
    background: linear-gradient(135deg, #ef4444, #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .calculator-title {
        font-size: 2rem;
    }
    
    .calculator-card {
        padding: 2rem;
    }
    
    .condition-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .step-actions {
        flex-direction: column;
    }
    
    .btn-next, .btn-prev, .btn-contact {
        width: 100%;
        min-width: unset;
    }
}

@media (max-width: 767.98px) {
    .calculator-section {
        padding: 60px 0;
    }
    
    .calculator-title {
        font-size: 1.75rem;
    }
    
    .calculator-card {
        padding: 1.5rem;
        border-radius: 16px;
    }
    
    .step-circle {
        width: 50px;
        height: 50px;
    }
    
    .step-circle i {
        font-size: 1rem;
    }
    
    .step-label {
        font-size: 0.8rem;
    }
    
    .condition-card {
        padding: 1.25rem;
    }
    
    .result-price {
        font-size: 2.5rem;
    }
    
    .progress-steps {
        flex-direction: row;
        gap: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .calculator-header {
        margin-bottom: 2rem;
    }
    
    .calculator-title {
        font-size: 1.5rem;
    }
    
    .calculator-subtitle {
        font-size: 1rem;
    }
    
    .step-header h3 {
        font-size: 1.5rem;
    }
    
    .condition-grid {
        grid-template-columns: 1fr;
    }
    
    .result-price {
        font-size: 2rem;
    }
}

/* ==================== BRANCH SECTION ==================== */

.branch-section {
    padding: 80px 0;
}

.branch-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
}

.branch-card:hover {
    transform: translateY(-5px);
}

.branch-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.branch-info {
    padding: 2rem;
}

.branch-info h4 {
    color: var(--primary-blue);
    font-weight: 600;
    margin-bottom: 1rem;
}

.branch-address {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Branch Section Responsive Styles */
/* Mobile */
@media (max-width: 767.98px) {
    .branch-actions {
        flex-direction: column;
    }
    
    .branch-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .branch-info {
        padding: 1.5rem;
    }
}

/* ==================== GALLERY SECTION ==================== */

.gallery-section {
    padding: 80px 0;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

/* Gallery Section Responsive Styles */
/* Mobile */
@media (max-width: 767.98px) {
    .gallery-img {
        height: 200px;
    }
}

/* ==================== VIDEO SECTION ==================== */

.video-section {
    padding: 80px 0;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==================== INFOGRAPHIC SECTION ==================== */

.infographic-section {
    background: var(--white);
    padding: 80px 0;
}

.infographic-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.infographic-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.infographic-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .infographic-section {
        padding: 60px 0;
    }
}

/* ==================== PRICE CHART SECTION ==================== */

.pricechart-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.pricechart-item {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.pricechart-item:hover {
    transform: scale(1.02);
}

.pricechart-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile responsive */
@media (max-width: 767.98px) {
    .pricechart-section {
        padding: 60px 0;
    }
}

/* ==================== FAQ SECTION ==================== */

.faq-section {
    padding: 80px 0;
}

.accordion-item {
    border: none;
    margin-bottom: 1rem;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.accordion-button {
    background: var(--white);
    border: none;
    padding: 1.5rem;
    font-family: 'Kanit', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
    border-radius: 15px;
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(135deg, var(--primary-blue), var(--light-blue));
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: none;
}

.accordion-body {
    padding: 1.5rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* ==================== FLOATING LINE BUTTON ==================== */

.floating-line {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.line-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--success-green);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.line-btn:hover {
    background: #00b300;
    color: var(--white);
    transform: scale(1.1);
}

.phone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #ffc107;
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    animation: pulse-phone 2s infinite;
}

.phone-btn:hover {
    background: #ffb300;
    color: var(--white);
    transform: scale(1.1);
}

@keyframes pulse-phone {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 152, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 152, 0, 0);
    }
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 195, 0, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 195, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 195, 0, 0);
    }
}

/* Floating Line Button Responsive Styles */
/* Mobile */
@media (max-width: 767.98px) {
    .floating-line {
        bottom: 20px;
        right: 20px;
    }
    
    .line-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .phone-btn {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

/* Fancybox */
/* Add this to your main.css file */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.gallery-item a {
    display: block;
    position: relative;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.pricechart-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
}

.pricechart-item a {
    display: block;
    position: relative;
}

.pricechart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    text-align: center;
}

.pricechart-overlay i {
    font-size: 3rem;
    margin-bottom: 10px;
}

.pricechart-overlay span {
    font-size: 1.1rem;
    font-weight: 500;
}

.pricechart-item:hover .pricechart-overlay {
    opacity: 1;
}