/* Waiting List Modal Styles */
.wbtm-waiting-list-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 99999;
    justify-content: center;
    align-items: center;
}

.wbtm-waiting-list-overlay.active {
    display: flex;
}

.wbtm-waiting-list-modal {
    background: #FF6B47;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wbtm-waiting-list-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s;
}

.wbtm-waiting-list-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.wbtm-waiting-list-modal h2 {
    color: white;
    font-size: 28px;
    margin: 0 0 10px 0;
    font-weight: 600;
}

.wbtm-waiting-list-modal p {
    color: white;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 30px 0;
    opacity: 0.95;
}

.wbtm-waiting-list-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wbtm-form-row {
    display: flex;
    gap: 15px;
}

.wbtm-form-row.full-width {
    flex-direction: column;
}

.wbtm-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.wbtm-form-group label {
    color: white;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    display: block;
}

.wbtm-form-group input[type="text"],
.wbtm-form-group input[type="email"],
.wbtm-form-group input[type="tel"],
.wbtm-form-group input[type="number"],
.wbtm-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    transition: background 0.3s;
    box-sizing: border-box;
}

.wbtm-form-group input[type="text"]::placeholder,
.wbtm-form-group input[type="email"]::placeholder,
.wbtm-form-group input[type="tel"]::placeholder,
.wbtm-form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

.wbtm-form-group input:focus,
.wbtm-form-group textarea:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.wbtm-form-group textarea {
    min-height: 100px;
    resize: vertical;
    font-family: inherit;
}

.wbtm-form-group input[type="number"] {
    -moz-appearance: textfield;
}

.wbtm-form-group input[type="number"]::-webkit-outer-spin-button,
.wbtm-form-group input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wbtm-gdpr-consent {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 10px 0;
}

.wbtm-gdpr-consent input[type="checkbox"] {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.wbtm-gdpr-consent label {
    color: white;
    font-size: 13px;
    line-height: 1.5;
    cursor: pointer;
    margin: 0;
}

.wbtm-gdpr-consent a {
    color: white;
    text-decoration: underline;
}

.wbtm-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.wbtm-btn {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
}

.wbtm-btn-primary {
    background: #28A745;
    color: white;
}

.wbtm-btn-primary:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.wbtm-btn-primary:disabled {
    background: #6c757d;
    cursor: not-allowed;
    transform: none;
}

.wbtm-btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.wbtm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.wbtm-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.wbtm-form-message.success {
    background: rgba(40, 167, 69, 0.2);
    color: white;
    border: 1px solid rgba(40, 167, 69, 0.5);
}

.wbtm-form-message.error {
    background: rgba(220, 53, 69, 0.2);
    color: white;
    border: 1px solid rgba(220, 53, 69, 0.5);
}

/* Loading State */
.wbtm-waiting-list-form.loading {
    opacity: 0.6;
    pointer-events: none;
}

.wbtm-btn-primary.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .wbtm-waiting-list-modal {
        padding: 30px 20px;
        width: 95%;
    }

    .wbtm-form-row {
        flex-direction: column;
        gap: 20px;
    }

    .wbtm-waiting-list-modal h2 {
        font-size: 24px;
    }

    .wbtm-waiting-list-modal p {
        font-size: 14px;
    }

    .wbtm-form-actions {
        flex-direction: column;
    }
}

/* Accessibility */
.wbtm-form-group input:focus-visible,
.wbtm-form-group textarea:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.wbtm-waiting-list-close:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}