/* WA Booking - Frontend Styles */

.wab-wrapper {
    max-width: 520px;
    margin: 30px auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.wab-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    overflow: hidden;
}

.wab-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff;
    padding: 28px 30px 22px;
    text-align: center;
}

.wab-icon {
    font-size: 38px;
    display: block;
    margin-bottom: 6px;
}

.wab-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #fff !important;
}

.wab-header p {
    margin: 0;
    font-size: 14px;
    opacity: 0.88;
    color: #fff !important;
}

form#wab-form {
    padding: 28px 30px 30px;
}

.wab-field {
    margin-bottom: 18px;
}

.wab-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
}

.wab-field input,
.wab-field select {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid #e5e5e5;
    border-radius: 9px;
    font-size: 15px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.wab-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

.wab-field input:focus,
.wab-field select:focus {
    border-color: #25D366;
    box-shadow: 0 0 0 3px rgba(37,211,102,0.15);
    background: #fff;
}

/* Preview box */
.wab-preview {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #166534;
    white-space: pre-line;
}

.wab-preview h4 {
    margin: 0 0 8px;
    font-size: 14px;
    color: #15803d;
    font-weight: 700;
}

#wab_preview_content {
    font-family: 'Courier New', monospace;
    font-size: 13.5px;
    color: #1a5c2e;
}

/* Submit button */
.wab-btn-wa {
    width: 100%;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #fff !important;
    border: none;
    border-radius: 10px;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: opacity 0.2s, transform 0.15s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}

.wab-btn-wa:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(37,211,102,0.40);
}

.wab-btn-wa:active {
    transform: translateY(0);
    opacity: 1;
}

.wab-btn-wa:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Loading spinner */
.wab-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: wab-spin 0.6s linear infinite;
}

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

@media (max-width: 560px) {
    .wab-wrapper { margin: 16px; }
    form#wab-form { padding: 20px 18px 22px; }
    .wab-header { padding: 22px 18px 18px; }
}
