/**
 * Custom CSS for Monserrat Diaz Theme
 */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Font smoothing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Animation keyframes */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

/* Spinner animation */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* FAQ transitions */
.faq-content {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
}

/* Custom focus styles */
input:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Star icons for testimonials */
.lucide-star {
    fill: currentColor;
}

/* Booking widget transitions */
#booking-step-1,
#booking-step-2,
#booking-step-3 {
    transition: opacity 0.3s ease-in-out;
}

/* Mobile menu animation */
#mobile-menu {
    transition: all 0.3s ease-in-out;
}

/* Navbar transitions */
#navbar {
    transition: all 0.3s ease-in-out;
}

/* Button hover effects */
.bg-teal-500:hover {
    transform: translateY(-1px);
}

.bg-teal-600:hover {
    transform: translateY(-1px);
}

/* Card hover effects */
.hover\:shadow-md:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Process section connector line responsive */
@media (max-width: 768px) {
    .process-connector {
        display: none;
    }
}

/* Ensure icons are vertically centered */
[data-lucide] {
    vertical-align: middle;
}

/* WordPress specific overrides */
.wp-block-image img {
    max-width: 100%;
    height: auto;
}

/* Hide WordPress admin bar on frontend if needed */
body.admin-bar #navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar #navbar {
        top: 46px;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #14b8a6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0d9488;
}

/* ==========================================================================
   WooCommerce Checkout Styles
   ========================================================================== */

/* Form fields */
.woocommerce-checkout .form-row {
    margin-bottom: 1rem;
}

.woocommerce-checkout .form-row label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.woocommerce-checkout .form-row label .required {
    color: #ef4444;
}

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea,
.woocommerce-checkout .form-row select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #f9fafb;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus,
.woocommerce-checkout .form-row select:focus {
    border-color: #14b8a6;
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
    background-color: #fff;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
    width: 100%;
    margin-bottom: 1.5rem;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.woocommerce-checkout-review-order-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.woocommerce-checkout-review-order-table .product-name {
    font-weight: 500;
    color: #111827;
}

.woocommerce-checkout-review-order-table .product-name .variation {
    display: block;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f0fdfa;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    color: #0f766e;
}

.woocommerce-checkout-review-order-table .product-name .variation dt {
    font-weight: 600;
    display: inline;
}

.woocommerce-checkout-review-order-table .product-name .variation dd {
    display: inline;
    margin-left: 0.25rem;
}

.woocommerce-checkout-review-order-table .order-total {
    font-size: 1.25rem;
}

.woocommerce-checkout-review-order-table .order-total td {
    color: #14b8a6;
    font-weight: 700;
}

/* Payment methods */
.woocommerce-checkout-payment {
    background: transparent !important;
    border-radius: 0 !important;
}

.wc_payment_methods {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 1.5rem 0 !important;
}

.wc_payment_methods li {
    margin-bottom: 0.75rem !important;
}

.wc_payment_methods li label {
    display: flex !important;
    align-items: center !important;
    gap: 0.75rem !important;
    padding: 1rem !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.wc_payment_methods li label:hover {
    border-color: #14b8a6 !important;
    background: #f0fdfa !important;
}

.wc_payment_methods li input[type="radio"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    accent-color: #14b8a6 !important;
}

.wc_payment_methods li input[type="radio"]:checked + label,
.wc_payment_methods li.payment_method_active label {
    border-color: #14b8a6 !important;
    background: #f0fdfa !important;
}

.wc_payment_methods li img {
    max-height: 24px !important;
    width: auto !important;
}

/* Place order button */
#place_order {
    width: 100% !important;
    padding: 1rem 2rem !important;
    background: linear-gradient(135deg, #14b8a6 0%, #06b6d4 100%) !important;
    color: #fff !important;
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    border: none !important;
    border-radius: 0.75rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 14px 0 rgba(20, 184, 166, 0.4) !important;
}

#place_order:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px 0 rgba(20, 184, 166, 0.5) !important;
}

/* Terms and conditions */
.woocommerce-terms-and-conditions-wrapper {
    margin-bottom: 1.5rem;
}

.woocommerce-terms-and-conditions-wrapper label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 0.5rem !important;
    font-size: 0.875rem !important;
    color: #6b7280 !important;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    width: 1.25rem !important;
    height: 1.25rem !important;
    accent-color: #14b8a6 !important;
    flex-shrink: 0 !important;
    margin-top: 0.125rem !important;
}

.woocommerce-terms-and-conditions-wrapper a {
    color: #14b8a6 !important;
    text-decoration: underline !important;
}

/* Privacy policy */
.woocommerce-privacy-policy-text {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.woocommerce-privacy-policy-text a {
    color: #14b8a6;
}

/* Notices */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    padding: 1rem 1.25rem !important;
    margin-bottom: 1.5rem !important;
    border-radius: 0.75rem !important;
    border: none !important;
    background: #fff !important;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important;
}

.woocommerce-message {
    border-left: 4px solid #10b981 !important;
}

.woocommerce-info {
    border-left: 4px solid #3b82f6 !important;
}

.woocommerce-error {
    border-left: 4px solid #ef4444 !important;
}

.woocommerce-error li {
    color: #ef4444;
}

/* Coupon form */
.checkout_coupon {
    padding: 1rem !important;
    background: #f9fafb !important;
    border-radius: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    border: 1px dashed #e5e7eb !important;
}

.checkout_coupon .form-row {
    display: flex !important;
    gap: 0.5rem !important;
}

.checkout_coupon input.input-text {
    flex: 1 !important;
}

.checkout_coupon button {
    padding: 0.75rem 1.5rem !important;
    background: #374151 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 0.5rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
}

.checkout_coupon button:hover {
    background: #1f2937 !important;
}

/* Hide default WooCommerce styles we're overriding */
.woocommerce-billing-fields h3,
.woocommerce-additional-fields h3 {
    display: none;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .woocommerce-checkout .lg\\:col-span-3,
    .woocommerce-checkout .lg\\:col-span-2 {
        grid-column: span 5;
    }
}
