/**
 * Countdown CTA Styles - Refined Design
 * 
 * Matches the Maido brand colors (#6b3922, #c9a66b, #f5f0eb, #fff7ee)
 */

/* ==========================================================================
   CTA Section
   ========================================================================== */

.maido-cta-section {
    position: relative;
    overflow: hidden;
    background: #f5f0eb;
    min-height: 600px;
}

@media (min-width: 1024px) {
    .maido-cta-section {
        min-height: 700px;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Background Image */
.maido-cta-background-image {
    position: relative;
    height: 256px;
    order: -1;
}

@media (min-width: 640px) {
    .maido-cta-background-image {
        height: 320px;
    }
}

@media (min-width: 1024px) {
    .maido-cta-background-image {
        height: auto;
        order: 1;
    }
}

.maido-cta-background-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.maido-cta-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, transparent 50%, #f5f0eb);
}

@media (min-width: 1024px) {
    .maido-cta-image-overlay {
        background: linear-gradient(to right, #f5f0eb, rgba(245, 240, 235, 0.5) 50%, transparent);
    }
}

/* Discount Badge on Image */
.maido-cta-discount-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #6b3922;
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

@media (min-width: 640px) {
    .maido-cta-discount-badge {
        top: 24px;
        right: 24px;
        padding: 12px 20px;
        font-size: 24px;
    }
}

@media (min-width: 640px) {
    .maido-cta-discount-badge {
        padding: 20px 28px;
        min-width: 240px;
    }
    
    .maido-cta-discount-badge .percentage {
        font-size: 36px;
    }
}

/* ==========================================================================
   Container
   ========================================================================== */

.maido-cta-container {
    position: relative;
    display: flex;
    align-items: center;
    padding: 32px 16px;
}

@media (min-width: 640px) {
    .maido-cta-container {
        padding: 48px 32px;
    }
}

@media (min-width: 1024px) {
    .maido-cta-container {
        padding: 64px 48px;
    }
}

@media (min-width: 1280px) {
    .maido-cta-container {
        padding: 64px;
    }
}

/* ==========================================================================
   Content Area
   ========================================================================== */

.maido-cta-content {
    width: 100%;
    max-width: 576px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .maido-cta-content {
        margin: 0;
    }
}

/* Badge */
.maido-cta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(107, 57, 34, 0.1);
    color: #6b3922;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .maido-cta-badge {
        font-size: 14px;
        margin-bottom: 24px;
    }
}

.maido-cta-badge svg {
    width: 12px;
    height: 12px;
}

@media (min-width: 640px) {
    .maido-cta-badge svg {
        width: 16px;
        height: 16px;
    }
}

/* Heading */
.maido-cta-heading {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

@media (min-width: 640px) {
    .maido-cta-heading {
        font-size: 36px;
        margin-bottom: 16px;
    }
}

@media (min-width: 768px) {
    .maido-cta-heading {
        font-size: 48px;
    }
}

/* Description */
.maido-cta-description {
    font-size: 16px;
    color: #6b6b6b;
    margin-bottom: 24px;
    line-height: 1.7;
}

@media (min-width: 640px) {
    .maido-cta-description {
        font-size: 18px;
        margin-bottom: 32px;
    }
}

/* ==========================================================================
   Countdown Timer
   ========================================================================== */

.maido-cta-countdown-wrapper {
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .maido-cta-countdown-wrapper {
        margin-bottom: 32px;
    }
}

.maido-cta-countdown-label {
    font-size: 12px;
    color: #6b6b6b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .maido-cta-countdown-label {
        font-size: 14px;
    }
}

.maido-cta-countdown {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 448px;
}

@media (min-width: 640px) {
    .maido-cta-countdown {
        gap: 12px;
    }
}

@media (min-width: 768px) {
    .maido-cta-countdown {
        gap: 16px;
    }
}

.maido-countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.maido-countdown-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e0db;
    width: 100%;
}

@media (min-width: 640px) {
    .maido-countdown-box {
        border-radius: 12px;
        padding: 12px 16px;
    }
}

.maido-countdown-value {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: #1a1a1a;
    display: block;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

@media (min-width: 640px) {
    .maido-countdown-value {
        font-size: 24px;
    }
}

@media (min-width: 768px) {
    .maido-countdown-value {
        font-size: 36px;
    }
}

.maido-countdown-label {
    font-size: 10px;
    color: #6b6b6b;
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 640px) {
    .maido-countdown-label {
        font-size: 12px;
        margin-top: 8px;
    }
}

@media (min-width: 768px) {
    .maido-countdown-label {
        font-size: 14px;
    }
}

/* ==========================================================================
   Pricing Card
   ========================================================================== */

.maido-cta-pricing-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e0db;
    margin-bottom: 24px;
}

@media (min-width: 640px) {
    .maido-cta-pricing-card {
        padding: 24px;
        margin-bottom: 32px;
    }
}

.maido-cta-pricing-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.maido-cta-pricing-prices {
    display: flex;
    align-items: center;
    gap: 12px;
}

@media (min-width: 640px) {
    .maido-cta-pricing-prices {
        gap: 16px;
    }
}

.maido-cta-price-group {
    display: flex;
    flex-direction: column;
}

.maido-cta-price-label {
    font-size: 12px;
    color: #6b6b6b;
    font-family: 'Inter', sans-serif;
}

.maido-cta-price-original {
    font-size: 18px;
    color: #6b6b6b;
    text-decoration: line-through;
    font-family: 'Inter', sans-serif;
}

@media (min-width: 640px) {
    .maido-cta-price-original {
        font-size: 20px;
    }
}

.maido-cta-price-current {
    font-family: 'Playfair Display', serif;
    font-size: 30px;
    color: #6b3922;
}

@media (min-width: 640px) {
    .maido-cta-price-current {
        font-size: 36px;
    }
}

.maido-cta-price-divider {
    width: 1px;
    height: 40px;
    background-color: #e5e0db;
}

.maido-cta-savings-badge {
    background-color: #d4c4b5;
    color: #5c4a3d;
    padding: 6px 12px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

@media (min-width: 640px) {
    .maido-cta-savings-badge {
        font-size: 14px;
    }
}

/* ==========================================================================
   CTA Button
   ========================================================================== */

.maido-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #6b3922;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    padding: 16px 32px;
    border-radius: 9999px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (min-width: 640px) {
    .maido-cta-button {
        width: auto;
        font-size: 18px;
        padding: 20px 40px;
    }
}

.maido-cta-button:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

/* ==========================================================================
   Trust Indicators
   ========================================================================== */

.maido-cta-trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 12px;
    color: #6b6b6b;
    margin-top: 16px;
}

@media (min-width: 640px) {
    .maido-cta-trust-indicators {
        font-size: 14px;
        margin-top: 24px;
    }
}

/* ==========================================================================
   Booking Form
   ========================================================================== */

.maido-cta-form {
    margin-top: 24px;
}

.maido-cta-form-group {
    margin-bottom: 16px;
}

.maido-cta-form-input,
.maido-cta-form-select,
.maido-cta-form-textarea {
    width: 100%;
    padding: 16px 20px;
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: #1a1a1a;
    background: #f8f8f8;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    outline: none;
}

.maido-cta-form-input::placeholder,
.maido-cta-form-textarea::placeholder {
    color: #999999;
}

.maido-cta-form-input:focus,
.maido-cta-form-select:focus,
.maido-cta-form-textarea:focus {
    background: #ffffff;
    border-color: #8b4513;
    box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.maido-cta-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 640px) {
    .maido-cta-form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.maido-cta-form-textarea {
    min-height: 100px;
    resize: vertical;
}

.maido-cta-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999999' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

/* ==========================================================================
   Trust Indicators
   ========================================================================== */

.maido-cta-trust-indicators {
    display: none;
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

/* Mobile - Hide image and badge */
@media (max-width: 1023px) {
    .maido-cta-section {
        background: #ffffff;
    }
    
    .maido-cta-background-image {
        display: none;
    }
    
    .maido-cta-discount-badge {
        display: none;
    }
}

/* ==========================================================================
   Admin Preview Styles
   ========================================================================== */

.wrap .maido-cta-section {
    margin: 0;
    border-radius: 0.375rem;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.maido-cta-button:focus {
    outline: 2px solid #6b3922;
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .maido-cta-button,
    .maido-countdown-box {
        transition: none;
    }
}
