/**
 * CleanGuin Custom Styles
 *
 * Additional styles for theme customization
 *
 * @package CleanGuin
 */

/* ===================================
   Pricing Table Styles
=================================== */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.pricing-table thead {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

.pricing-table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
}

.pricing-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.pricing-table tbody tr:hover {
    background: var(--bg-light);
}

.pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.pricing-table td strong {
    display: block;
    margin-bottom: 0.25rem;
}

.pricing-table td small {
    color: var(--text-light);
    font-size: 0.8125rem;
}

.price-cell {
    text-align: center;
}

.price-amount {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* ===================================
   Booking Wrapper Styles
=================================== */
.booking-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

/* ===================================
   Additional Service Card Styles
=================================== */
.service-card .btn {
    width: 100%;
}

.service-card:hover .btn {
    background: var(--primary-dark);
}

/* ===================================
   Animation Delays for Grid Items
=================================== */
.services-grid .service-card:nth-child(1) { animation-delay: 0.1s; }
.services-grid .service-card:nth-child(2) { animation-delay: 0.2s; }
.services-grid .service-card:nth-child(3) { animation-delay: 0.3s; }
.services-grid .service-card:nth-child(4) { animation-delay: 0.4s; }
.services-grid .service-card:nth-child(5) { animation-delay: 0.5s; }
.services-grid .service-card:nth-child(6) { animation-delay: 0.6s; }
.services-grid .service-card:nth-child(7) { animation-delay: 0.7s; }
.services-grid .service-card:nth-child(8) { animation-delay: 0.8s; }

.benefits-grid .benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefits-grid .benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefits-grid .benefit-card:nth-child(3) { animation-delay: 0.3s; }
.benefits-grid .benefit-card:nth-child(4) { animation-delay: 0.4s; }

/* ===================================
   Price Table Responsive
=================================== */
@media (max-width: 768px) {
    .pricing-table {
        display: block;
        overflow-x: auto;
    }
    
    .pricing-table thead {
        display: none;
    }
    
    .pricing-table tbody,
    .pricing-table tr,
    .pricing-table td {
        display: block;
    }
    
    .pricing-table tr {
        margin-bottom: 1rem;
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }
    
    .pricing-table td {
        padding: 1rem 1.25rem;
        text-align: left;
        border-bottom: 1px solid var(--border-color);
    }
    
    .pricing-table td:first-child {
        background: var(--bg-light);
        font-weight: 600;
    }
    
    .pricing-table td:last-child {
        border-bottom: none;
    }
    
    .price-cell {
        text-align: left;
    }
}

/* ===================================
   Contact Form Additional Styles
=================================== */
.contact-form-wrapper {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.contact-form-wrapper .btn {
    width: 100%;
}

/* ===================================
   Active Navigation Highlight
=================================== */
.nav-menu a[href*="#"]:hover,
.nav-menu a[href*="#"].active {
    color: var(--primary-color);
}

/* ===================================
   Hero Background Pattern
=================================== */
.hero {
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to top, var(--bg-section), transparent);
    pointer-events: none;
}

/* ===================================
   Testimonials Responsive Styles
=================================== */
@media (max-width: 1024px) {
    .testimonials-track {
        padding: 0 1rem;
    }
}

/* ===================================
   Process Timeline Responsive
=================================== */
@media (max-width: 1024px) {
    .process-step {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem 0;
        background: white;
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
    }
    
    .process-timeline::before {
        display: none;
    }
}

/* ===================================
   WhatsApp Button Pulse Animation
=================================== */
.whatsapp-float {
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ===================================
   Service Selector Item Active State
=================================== */
.service-selector-item.selected {
    border-color: var(--primary-color);
    background: rgba(14, 165, 233, 0.05);
}

.service-selector-item.selected .service-selector-icon {
    background: var(--primary-color);
}

.service-selector-item.selected .service-selector-icon svg {
    fill: white;
}

/* ===================================
   Date Picker Today Highlight
=================================== */
.date-picker-day.today {
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(14, 165, 233, 0.1);
}

/* ===================================
   Footer Enhancements
=================================== */
.site-footer .logo {
    margin-bottom: 1rem;
}

.site-footer .footer-links svg {
    opacity: 0.7;
}

/* ===================================
   Section Specific Backgrounds
=================================== */
#korzysci {
    background: linear-gradient(135deg, var(--bg-section) 0%, white 100%);
}

#jak-dzialamy {
    background: white;
    position: relative;
}

#jak-dzialamy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230EA5E9' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* ===================================
   CTA Section Gradient Enhancement
=================================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 50%, var(--primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
    animation: ctaGlow 10s infinite linear;
}

@keyframes ctaGlow {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===================================
   Loading States
=================================== */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid white;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* ===================================
   Scroll Indicator
=================================== */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ===================================
   Back to Top Button
=================================== */
.back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* ===================================
   Print Styles
=================================== */
@media print {
    .site-header,
    .site-footer,
    .whatsapp-float,
    .cookie-banner,
    .back-to-top {
        display: none !important;
    }
    
    .hero {
        padding-top: 0;
    }
    
    .section {
        page-break-inside: avoid;
    }
}

/* ===================================
   Enhanced Theme Styles v2.7
=================================== */

/* Hero Section Improvements */
.hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero-inner {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #475569;
}

/* Enhanced Hero Calculator */
.hero-calculator {
    background: linear-gradient(145deg, #ffffff 0%, #f8fcff 100%);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 
        0 25px 50px -12px rgba(14, 165, 233, 0.25),
        0 0 0 1px rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

.hero-calculator::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee, #0ea5e9);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.calculator-header {
    margin-bottom: 2rem;
}

.calculator-header h3 {
    font-size: 1.5rem;
    color: #1e3a5f;
    margin-bottom: 0.5rem;
}

.calculator-header p {
    color: #64748b;
    font-size: 0.95rem;
    margin: 0;
}

/* Mini Calculator Items */
.mini-calculator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid #e0f2fe;
}

.mini-calculator-item:last-child {
    border-bottom: none;
}

.mini-calculator-item .item-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mini-calculator-item .item-checkbox {
    width: 22px;
    height: 22px;
    accent-color: #0ea5e9;
    cursor: pointer;
}

.mini-calculator-item .item-name {
    font-weight: 500;
    color: #1e3a5f;
}

.mini-calculator-item .item-price {
    font-weight: 700;
    color: #0ea5e9;
    font-size: 1.1rem;
}

/* Calculator Total */
.calculator-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 16px;
    border: 2px solid rgba(14, 165, 233, 0.2);
}

.calculator-total .total-label {
    font-weight: 500;
    color: #475569;
}

.calculator-total .total-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0ea5e9;
}

/* Calculator CTA Button */
.calculator-cta {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    margin-top: 1.5rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}

.calculator-cta:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.45);
    color: white;
}

/* Enhanced Booking Calculator */
.booking-calculator {
    background: linear-gradient(180deg, #ffffff 0%, #fafeff 100%);
    border-radius: 24px;
    box-shadow: 
        0 20px 40px rgba(14, 165, 233, 0.12),
        0 0 0 1px rgba(14, 165, 233, 0.08);
    overflow: hidden;
}

/* Booking Steps */
.booking-steps {
    display: flex;
    background: linear-gradient(135deg, #f8fcff 0%, #f0f9ff 100%);
    padding: 0;
    border-bottom: none;
    position: relative;
}

.booking-step {
    flex: 1;
    padding: 1.25rem 1rem;
    text-align: center;
    font-weight: 600;
    color: #94a3b8;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: transparent;
    border: none;
}

.booking-step:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40%;
    background: rgba(14, 165, 233, 0.2);
}

.booking-step.active {
    color: #0ea5e9;
    background: white;
}

.booking-step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #e2e8f0;
    border-radius: 50%;
    font-size: 0.875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.booking-step.active .booking-step-number {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.4);
}

.booking-step.completed .booking-step-number {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
}

.booking-step.completed .booking-step-number::before {
    content: '✓';
}

/* Booking Content */
.booking-content {
    padding: 2.5rem;
}

.booking-section h3 {
    font-size: 1.5rem;
    color: #1e3a5f;
    margin-bottom: 1.5rem;
}

/* Service Selector Items */
.service-selector-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #fafeff 100%);
    border: 2px solid #e0f2fe;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.service-selector-item:last-child {
    margin-bottom: 0;
}

.service-selector-item:hover {
    border-color: #7dd3fc;
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.1);
    transform: translateX(4px);
}

.service-selector-item.selected {
    border-color: #0ea5e9;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.15);
}

.service-selector-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(14, 165, 233, 0.15);
}

.service-selector-item.selected .service-selector-icon {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border-color: transparent;
}

.service-selector-item.selected .service-selector-icon svg {
    fill: white;
}

.service-selector-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1e3a5f;
}

.service-selector-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0ea5e9;
    white-space: nowrap;
}

/* Quantity Controls */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 4px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.1);
}

.quantity-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.3);
}

.quantity-btn:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: scale(1.05);
}

.quantity-btn:active {
    transform: scale(0.95);
}

.quantity-input {
    width: 56px;
    min-width: 56px;
    text-align: center;
    padding: 0.625rem 0.25rem;
    border: 2px solid #e0f2fe;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1.125rem;
    background: white;
    color: #1e3a5f;
}

.quantity-input:focus {
    outline: none;
    border-color: #0ea5e9;
}

/* Order Summary Box */
.order-summary {
    background: linear-gradient(135deg, #f8fcff 0%, #f0f9ff 100%);
    border-radius: 20px;
    padding: 2rem;
    margin-top: 2rem;
    border: 2px solid rgba(14, 165, 233, 0.15);
}

.order-summary h4 {
    font-size: 1.25rem;
    color: #1e3a5f;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(14, 165, 233, 0.15);
}

.order-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(14, 165, 233, 0.1);
}

.order-summary-item:last-child {
    border-bottom: none;
}

.order-summary-item .item-name {
    color: #475569;
}

.order-summary-item .item-total {
    font-weight: 600;
    color: #1e3a5f;
}

.order-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 1.25rem 0 0;
    margin-top: 1rem;
    border-top: 2px solid #0ea5e9;
}

.order-summary-total .total-label {
    font-weight: 600;
    font-size: 1.1rem;
    color: #1e3a5f;
}

.order-summary-total .total-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0ea5e9;
}

/* Submit Button */
.booking-submit {
    display: block;
    width: 100%;
    padding: 1.25rem 2rem;
    margin-top: 2rem;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.35);
}

.booking-submit:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(14, 165, 233, 0.45);
}

.booking-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Service Cards - Enhanced */
.service-card {
    background: linear-gradient(180deg, #ffffff 0%, #fafeff 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(14, 165, 233, 0.1);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Section Headers - Enhanced */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #1e3a5f;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #22d3ee);
    border-radius: 2px;
}

.section-header p {
    color: #64748b;
    font-size: 1.125rem;
    max-width: 600px;
    margin: 1.5rem auto 0;
}

/* Footer - Enhanced */
.site-footer {
    background: linear-gradient(180deg, #0c4a6e 0%, #0a3d5c 100%);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(14, 165, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-content p {
        text-align: center;
        font-size: 1rem;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-calculator {
        padding: 1.5rem;
        border-radius: 20px;
    }
    
    .booking-steps {
        flex-direction: row;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .booking-step {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0.75rem;
        font-size: 0.85rem;
        white-space: nowrap;
    }
    
    .booking-step:not(:last-child)::after {
        display: none;
    }
    
    .booking-content {
        padding: 1.5rem;
    }
    
    .service-selector-item {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .service-selector-info {
        flex: 1 1 100%;
        margin-bottom: 0.75rem;
    }
    
    .service-selector-price {
        margin-right: auto;
    }
    
    .quantity-control {
        margin-left: auto;
    }
    
    .section-header {
        margin-bottom: 2.5rem;
    }
    
    .section-header h2::after {
        bottom: -8px;
        width: 60px;
        height: 3px;
    }
}
