/* WooCommerce Rezervace - Štýly v2.3.0 */

/* SUCCESS & ERROR HLÁŠKY */
.wzr-success-notice,
.wzr-error-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.4s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wzr-success-notice {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 2px solid #059669;
}

.wzr-error-notice {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid #dc2626;
}

.wzr-success-icon,
.wzr-error-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.wzr-success-content,
.wzr-error-content {
    flex: 1;
    color: white;
}

.wzr-success-content h3,
.wzr-error-content h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.wzr-success-content p,
.wzr-error-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
}

.wzr-error-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
    list-style: disc;
}

.wzr-error-content ul li {
    margin: 4px 0;
    color: rgba(255, 255, 255, 0.95);
}

/* Rezervační formulář */
.wzr-inquiry-wrap {
    margin: 20px 0;
}

.wzr-inquiry-form {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Řádky formuláře */
.wzr-inquiry-form .wzr-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.wzr-inquiry-form .wzr-row-5 {
    grid-template-columns: 1fr;
    margin-bottom: 0;
}

/* Pole formuláře */
.wzr-inquiry-form .wzr-field {
    display: flex;
    flex-direction: column;
}

/* Labely */
.wzr-inquiry-form .wzr-label {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #222;
}

.wzr-required {
    color: #ef4444;
    font-weight: 700;
}

.wzr-inquiry-form .wzr-sublabel {
    font-weight: 600;
    font-size: 13px;
    margin: 12px 0 6px 0;
    color: #222;
    display: block;
}

/* Vstupy - OPRAVENÝ LINE-HEIGHT */
.wzr-inquiry-form input[type="text"],
.wzr-inquiry-form input[type="email"],
.wzr-inquiry-form input[type="tel"],
.wzr-inquiry-form input[type="number"],
.wzr-inquiry-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    font-size: 15px;
    line-height: 1.6;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: auto;
    min-height: 44px;
}

.wzr-inquiry-form input[type="text"]:focus,
.wzr-inquiry-form input[type="email"]:focus,
.wzr-inquiry-form input[type="tel"]:focus,
.wzr-inquiry-form input[type="number"]:focus,
.wzr-inquiry-form select:focus {
    outline: none;
    border-color: #EB9000;
    box-shadow: 0 0 0 3px rgba(235, 144, 0, 0.1);
}

/* Chybová zvýraznění */
.wzr-inquiry-form input.error,
.wzr-inquiry-form select.error {
    border-color: #ef4444;
    background: #fef2f2;
}

.wzr-inquiry-form input[type="number"] {
    max-width: 160px;
}

/* Hint text */
.wzr-inquiry-form .wzr-hint {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
    line-height: 1.4;
}

/* Tlačidlá délky zájezdu */
.wzr-length-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wzr-type-button {
    padding: 10px 18px;
    border: 2px solid #d7d7d7;
    background: #fff;
    color: #333;
    cursor: pointer;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.2s;
    margin: 0;
}

.wzr-type-button:hover {
    border-color: #EB9000;
    color: #EB9000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(235, 144, 0, 0.2);
}

.wzr-type-button.active {
    background: #EB9000;
    color: #fff;
    border-color: #EB9000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(235, 144, 0, 0.3);
}

/* Select termínů */
.wzr-field-term .wzr-date-select {
    margin-top: 2px;
}

/* Extra pole pro jednodenní výlet */
.wzr-one-day-extra {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #e5e5e5;
}

/* Cena box */
.wzr-price-box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 50px;
    padding: 0 16px;
    border: 2px solid #EB9000;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff9f0 0%, #ffedd5 100%);
    font-weight: 700;
    font-size: 20px;
    color: #EB9000;
}

.wzr-price-value {
    display: block;
}

/* Tlačidlo rezervace */
.wzr-submit {
    width: 100%;
    border-radius: 12px !important;
    padding: 16px 20px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    background: linear-gradient(135deg, #EB9000 0%, #d68000 100%) !important;
    border: none !important;
    color: #fff !important;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(235, 144, 0, 0.3);
}

.wzr-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(235, 144, 0, 0.4);
}

.wzr-submit:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(235, 144, 0, 0.3);
}

/* Responzívny design */
@media (max-width: 768px) {
    .wzr-inquiry-form .wzr-row {
        grid-template-columns: 1fr;
    }
    
    .wzr-inquiry-form input[type="number"] {
        max-width: 100%;
    }
    
    .wzr-length-buttons {
        flex-direction: column;
    }
    
    .wzr-type-button {
        width: 100%;
    }
    
    .wzr-success-notice,
    .wzr-error-notice {
        flex-direction: column;
        text-align: center;
    }
    
    .wzr-success-icon,
    .wzr-error-icon {
        margin: 0 auto;
    }
}

/* Skrytie WooCommerce množstva */
.product-type-simple .quantity,
.product-type-variable .quantity {
    display: none !important;
}

/* Loading state */
.wzr-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wzr-submit.loading {
    position: relative;
}

.wzr-submit.loading::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
