@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --edz-primary: #432f2e;
    --edz-secondary: #efc38d;
    --edz-main: #e67310;
    --edz-font: 'Outfit', sans-serif;
    
    --edz-bg-card: #ffffff;
    --edz-border: #e1e8ed;
    --edz-text: #2c3e50;
    --edz-text-muted: #8899a6;
}

/* Base resets & typography for widget container */
.eudoraz-booking-widget,
.eudoraz-checkout-container,
.eudoraz-confirmation-box {
    font-family: var(--edz-font);
    color: var(--edz-text);
}

/* Core frontend widget */
.eudoraz-booking-widget {
    border: 1px solid var(--edz-border);
    border-radius: 12px;
    padding: 24px;
    background-color: var(--edz-bg-card);
    box-shadow: 0 8px 24px rgba(67, 47, 46, 0.06);
    max-width: 380px;
    margin: 0 auto;
    transition: box-shadow 0.3s ease;
}

.eudoraz-booking-widget:hover {
    box-shadow: 0 12px 32px rgba(67, 47, 46, 0.1);
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--edz-primary);
}

.calendar-header button {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--edz-primary);
    cursor: pointer;
    padding: 2px 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.calendar-header button:hover {
    color: var(--edz-main);
    transform: scale(1.15);
}

.calendar-days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--edz-text-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    text-align: center;
    margin-bottom: 20px;
}

.calendar-grid span {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 0;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.calendar-grid span.available {
    background-color: #fcfbfa;
    border: 1px solid #f5f0eb;
    color: var(--edz-primary);
}

.calendar-grid span.available:hover {
    background-color: var(--edz-secondary);
    border-color: var(--edz-secondary);
    color: var(--edz-primary);
}

.calendar-grid span.selected {
    background-color: var(--edz-main) !important;
    border-color: var(--edz-main) !important;
    color: #ffffff !important;
    font-weight: 600;
}

.calendar-grid span.in-range {
    background-color: rgba(239, 195, 141, 0.3); /* Transparent secondary gold */
    color: var(--edz-primary);
}

.calendar-grid span.blocked {
    color: #ccd0d4;
    text-decoration: line-through;
    cursor: not-allowed;
    background-color: #f7f7f7;
    border: 1px solid #eeeeee;
}

.booking-selection-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 16px;
}

.booking-selection-inputs input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--edz-border);
    border-radius: 8px;
    font-size: 0.9rem;
    font-family: var(--edz-font);
    background-color: #faf9f8;
    color: var(--edz-primary);
    transition: all 0.2s ease;
}

.booking-selection-inputs input:focus {
    border-color: var(--edz-secondary);
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 195, 141, 0.2);
}

.booking-guests-selector select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--edz-border);
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-family: var(--edz-font);
    background-color: #faf9f8;
    color: var(--edz-primary);
    transition: all 0.2s ease;
}

.booking-guests-selector select:focus {
    border-color: var(--edz-secondary);
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 195, 141, 0.2);
}

.eudoraz-price-breakdown {
    background-color: #faf8f6;
    border: 1px solid #f2ece6;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 20px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--edz-primary);
}

.breakdown-row span:last-child {
    font-weight: 600;
}

.breakdown-row.total {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: var(--edz-primary);
}

.eudoraz-booking-btn-submit,
.eudoraz-btn-pay {
    display: block;
    width: 100%;
    background-color: var(--edz-main);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(230, 115, 16, 0.2);
    font-family: var(--edz-font);
}

.eudoraz-booking-btn-submit:hover:not(:disabled),
.eudoraz-btn-pay:hover {
    background-color: #d1640a;
    box-shadow: 0 6px 16px rgba(230, 115, 16, 0.3);
    transform: translateY(-1px);
}

.eudoraz-booking-btn-submit:active:not(:disabled),
.eudoraz-btn-pay:active {
    transform: translateY(1px);
}

.eudoraz-booking-btn-submit:disabled {
    background-color: #e2e8f0;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

/* Checkout page layout */
.eudoraz-checkout-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    margin-top: 30px;
}

@media(max-width: 992px) {
    .eudoraz-checkout-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.eudoraz-checkout-info,
.eudoraz-checkout-form-container,
.eudoraz-confirmation-box {
    border: 1px solid var(--edz-border);
    border-radius: 12px;
    padding: 32px;
    background-color: var(--edz-bg-card);
    box-shadow: 0 8px 24px rgba(67, 47, 46, 0.04);
}

.eudoraz-checkout-info h2,
.eudoraz-checkout-form-container h2,
.eudoraz-confirmation-box h2 {
    color: var(--edz-primary);
    margin-top: 0;
    margin-bottom: 24px;
    font-weight: 700;
}

.eudoraz-checkout-info p {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f5f0eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.eudoraz-checkout-info p strong:first-child {
    font-weight: 500;
    color: var(--edz-text-muted);
}

.eudoraz-checkout-info h3 {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    color: var(--edz-primary);
    margin-top: 24px;
    font-weight: 700;
}

.form-row {
    margin-bottom: 20px;
}

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--edz-primary);
}

.form-row input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--edz-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--edz-font);
    background-color: #faf9f8;
    color: var(--edz-primary);
    transition: all 0.2s ease;
}

.form-row input:focus {
    border-color: var(--edz-secondary);
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(239, 195, 141, 0.2);
}

.payment-method-selection {
    margin-bottom: 24px;
}

.payment-method-selection h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--edz-primary);
    margin-top: 0;
    margin-bottom: 16px;
}

.payment-method-selection label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--edz-primary);
}

.payment-method-selection input[type="radio"] {
    accent-color: var(--edz-main);
    width: 18px;
    height: 18px;
}

.checkout-msg {
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    font-size: 0.95rem;
}

.checkout-msg.error {
    background-color: #fdf2f2;
    color: #de3b3b;
    border-left: 4px solid #de3b3b;
}

.checkout-msg.success {
    background-color: #f0fdf4;
    color: #16a34a;
    border-left: 4px solid #16a34a;
}

/* Confirmation Box */
.eudoraz-confirmation-box {
    max-width: 550px;
    margin: 60px auto;
    text-align: center;
    border-top: 4px solid var(--edz-main);
}

.eudoraz-confirmation-box svg {
    color: var(--edz-main);
    margin-bottom: 16px;
}

.eudoraz-confirmation-box p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 16px;
}