/* 
Theme Name: reservas.ozone.org.es
Theme URI: https://reservas.ozone.org.es/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Amirence
Author URI: https://amirence.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: reservas-ozone-org-es
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/*
    Add your custom styles here
*/

:root {
    --primary: #DB0334;
    --secondary: #EAC60E;
    --text: #162939;
    --accent: #EB7F14;
    --blue: #4F95CC;
    --white: #FFFFFF;
    --black: #000000;
    --muted-blue: #1B365D;
    --Vanadyl-blue: #00A3E0;
    --newText: #1B365D;
    --btnColor: #ED8B00;

    --radius: 8px;
    --shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* WRAPPER */
#ozone-event-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
    color: var(--text);
    font-family: system-ui, sans-serif;
}

#ozone-event-wrapper h1,
#ozone-event-wrapper h2,
#ozone-event-wrapper h3 {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: var(--primary);
    font-size: 18px;
}

.section #center_display {
    border: 0px;
}

#ozone-event-wrapper h3 {
    color: var(--newText);
}

/* LABELS + INPUTS */
label {
    display: block;
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 500;
    /* color: var(--text); */
    color: var(--newText);
}

input,
textarea,
select {
    width: 100%;
    padding: 6px 8px;
    font-size: 13px;
    border-radius: var(--radius);
    border: 1px solid #d0d0d0;
    margin-bottom: 10px;
    color: var(--text);
    background: var(--white);
}

input:focus,
textarea:focus,
select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(219, 3, 52, 0.15);
    outline: none;
}

/* BUTTONS */
button,
#submit_event {
    /* background: var(--primary); */
    background: var(--btnColor);
    color: var(--white);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: 0.2s;
}

button:hover,
#submit_event:hover {
    background: var(--accent);
}

/* STATUS TEXT */
#child_status,
#availability_status {
    font-size: 13px;
    margin-top: 5px;
}

/* MEALS */
.meal-item {
    border: 1px solid #eee;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: var(--radius);
    background: var(--white);
}

.meal-item h4 {
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

.meal-item p {
    margin: 0 0 5px;
    font-size: 12px;
    color: var(--text);
}

.meal-item input {
    width: 80px;
}

/* RESULT BOX */
#ozone-result {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
}

/* EVENT LISTING CARDS (Your existing CPT UI) */

body.single-evento {
    background: var(--muted-blue);
}

.evento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.evento-card {
    /* background: var(--white); */
    background: var(--muted-blue);
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform .15s ease;
}

.evento-card:hover {
    transform: translateY(-3px);
}

.evento-image-wrapper {
    height: 140px;
    overflow: hidden;
}

.evento-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.evento-card:hover .evento-image-wrapper img {
    transform: scale(1.03);
}

.evento-content {
    padding: 12px;
}

.elementor-kit-6 a.evento-card {
    font-size: 22px;
    text-decoration: none;
}

.evento-title {
    color: var(--white)
}

.evento-title:hover {
    color: var(--Vanadyl-blue);
}

/* .evento-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 5px;
} */

.evento-excerpt {
    font-size: 16px;
    color: var(--text);
}


/* child + meal items stay full width */
.meal-item {
    grid-column: span 3;
}

.meal-selected {
    border-color: #0074ff !important;
    background: #e8f1ff;
}

.selectable-meal:hover {
    border-color: #0074ff;
}

/* FORM SECTIONS — card layout */
.section {
    /* background: var(--white); */
    background: var(--Vanadyl-blue);
    border-radius: 10px;
    /* border: 1px solid #e1e1e1; */
    padding: 12px 14px;
    margin-bottom: 25px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.fieldset button {
    background-color: var(--btnColor);
}

/* Section titles */
.section h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 700;
}

/* GRID: 3 columns */
.section-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 18px;
    margin-bottom: 10px;
}

.event-details-section .section-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.event-details-section .section-grid .form-field:nth-child(3) {
    grid-column: 1 / -1;
}


/* Wrapper for label+input */
.form-field {
    display: flex;
    flex-direction: column;
}

/* Labels */
.form-field label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 4px;
}

/* Inputs */
.form-field input,
.form-field textarea,
.form-field select {
    padding: 7px 10px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.form-field textarea {
    height: 80px;
    resize: none;
}

/* Save Child button */
#add_child_btn {
    width: auto;
    padding: 8px 18px;
    margin-top: 10px;
    /* background: var(--primary); */
    background: var(--btnColor);
    border-radius: 6px;
}

/* Availability status */
#availability_status {
    margin-top: 6px;
    font-size: 13px;
    grid-column: span 3;
}

/* Meals section */
#meals_section .meal-item {
    padding: 15px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: .2s;
}

#meals_section .meal-item:hover {
    border-color: var(--primary);
    background: #fff6f8;
}

.meal-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 5px;
}

/* Total Cost Layout */
#total_cost_display {
    padding-top: 5px;
    font-size: 20px !important;
    font-weight: 700;
}

/* Create Event button */
#submit_event {
    margin-top: 20px;
    width: auto;
    padding: 10px 22px;
    font-size: 14px;
    border-radius: 6px;
}

#meals_section {
    display: flex;
    flex-wrap: wrap;
}

.meal-card {
    width: 33.3%;
    padding: 5px;
}

.event-details-section .form-field:nth-child(4) {
    grid-column: span 3;
}

#ozone-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    z-index: 99999;
}

.spinner {
    width: 55px;
    height: 55px;
    border: 6px solid var(--primary);
    border-top: 6px solid transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
    position: absolute;
    top: 50%;
    left: 50%;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Disable button appearance */
#submit_event[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

/* HERO SECTION */
.evento-hero {
    width: 100%;
    height: 320px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.evento-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(22, 41, 57, 0.45);
    /* dark overlay */
}

.evento-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

.evento-hero-content h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    margin: 0;
}

/* Modal overlay */
#ozone-payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 99999;
}

.ozone-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

/* Modal box */
.ozone-modal-box {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 420px;
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    transform: translate(-50%, -50%);
    z-index: 999999;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.ozone-btn-card,
.ozone-btn-bizum {
    width: 100%;
    padding: 14px;
    margin-top: 12px;
    font-size: 17px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
}

.ozone-btn-card {
    background: #2563eb;
    color: white;
}

.ozone-btn-bizum {
    background: #f97316;
    color: white;
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.ozone-close-btn {
    background: transparent;
    border: none;
    margin-top: 15px;
    font-size: 16px;
    cursor: pointer;
    color: #555;
}

.ozone-btn-bizum img {
    width: 16px;
    height: auto;
}

/* Celebration Card */
.ozone-success-card {
    max-width: 650px;
    margin: 40px auto;
    background: #ffffff;
    padding: 30px;
    border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10);
    position: relative;
    overflow: hidden;
    border: 3px solid #ffcc00;
}

/* Confetti background */
.ozone-success-card::before {
    content: "";
    /* background-image: url('https://i.imgur.com/4NJlSeS.png'); */
    /* confetti pattern */
    opacity: 0.15;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

/* Header banner */
.ozone-celebration-banner {
    background: linear-gradient(45deg, #ff9800, #ffcc00);
    padding: 15px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15);
}

/* Section title */
.ozone-success-section h2 {
    font-size: 20px;
    border-left: 5px solid #ff9500;
    padding-left: 10px;
    margin-bottom: 10px;
    color: #333;
}

/* Paragraphs */
.ozone-success-section p {
    font-size: 16px;
    padding: 4px 0;
}

/* Meals list */
#ozone-meals {
    list-style: none;
    padding: 0;
}

#ozone-meals li {
    background: #fff9e6;
    padding: 8px 12px;
    margin-bottom: 6px;
    border-radius: 8px;
    border: 1px solid #ffdc7c;
}

/* Error block */
.ozone-error-box {
    max-width: 500px;
    margin: 40px auto;
    text-align: center;
    background: #ffe6e6;
    padding: 25px;
    border-radius: 14px;
    border: 2px solid #ff6b6b;
}

.ozone-error-box h2 {
    color: #c62828;
}

.ozone-success-actions {
    text-align: center;
    margin-top: 25px;
    position: relative;
    z-index: 2;
}

.ozone-home-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #2563eb;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.25s ease, transform 0.2s ease;
}

.ozone-home-btn:hover {
    background: #1e40af;
    transform: translateY(-2px);
}
                                                                                                                                                                                                                                    
/* Add to your CSS file */
.button-spinner {
    display: inline-block;
    margin-left: 10px;
    vertical-align: middle;
}

.spinner-inner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

.ozone-btn-card .spinner-inner,
.ozone-close-btn .spinner-inner {
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ozone-success-card {
    max-width: 700px;
    margin: 20px auto;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e3e3e3;
}

.ozone-celebration-banner {
    background: #DB0334;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.ozone-success-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.ozone-home-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background: #0074ff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.ozone-error-box {
    max-width: 700px;
    margin: 20px auto;
    padding: 18px;
    background: #fff3f3;
    border-radius: 8px;
    border: 1px solid #f1c0c0;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.ozone-error-card {
    max-width: 700px;
    margin: 20px auto;
    padding: 18px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #f1b4b4;
    display: none;
}

.ozone-error-banner {
    background: #C62828;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    font-size: 18px;
    margin-bottom: 12px;
}

.ozone-error-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ozone-home-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 10px 14px;
    background: #0074ff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
}

.closebtn {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.elementor-kit-6 button.ozone-close-btn {
    padding: 5px;
    border-radius: 100%;
    height: 30px;
    width: 30px;
    font-size: 14px;
}


#meals_section .distribution-summary {
    flex-basis: 100%;
}

.meal-quantity-controls .quantity-btn.increment,
.meal-quantity-controls .quantity-btn.decrement {
    padding: 6px 15px;
}

.meal-quantity-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.meal-quantity-controls .fieldset .quantity-input {
    margin-bottom: 0px;
}

.initialQty {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    /* align-items: center; */
}


#legal-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
}

#legal-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

#legal-modal .modal-content {
    position: relative;
    background: #fff;
    max-width: 700px;
    margin: 5% auto;
    padding: 20px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
}

#legal-modal .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 22px;
}

.legalCheckboxes .form-field {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0px 10px;
}

.legalCheckboxes .form-field input[type="checkbox"] {
    width: max-content;
    margin-bottom: 0px;
}


/* Responsive */
@media (max-width: 768px) {
    .evento-hero {
        height: 240px;
    }

    .evento-hero-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .evento-hero {
        height: 200px;
    }

    .evento-hero-content h1 {
        font-size: 20px;
    }
}


/* Responsive */
@media (max-width: 900px) {
    .section-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .event-details-section .form-field:nth-child(4) {
        grid-column: span 2;
    }

    .meal-card {
        width: 33.3%;
    }
}

@media (max-width: 600px) {
    .section-grid {
        grid-template-columns: 1fr;
    }

    .event-details-section .form-field:nth-child(4) {
        grid-column: span 1;
    }

    .meal-card {
        width: 50%;
    }
}