/**
 * Baha SaaS Form — Premium Styles (Genesis G2)
 *
 * Styling for the dedicated [baha_saas_checkout] form.
 * Clean, modern, premium feel — no COD/shipping baggage.
 *
 * @package Baha_Digital_SaaS
 * @since 11.0.0
 */

/* ============================
   Form Wrapper
   ============================ */
.baha-saas-form-wrap {
    max-width: 520px;
    margin: 0 auto;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
}

.baha-saas-form-inner {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
}

/* ============================
   Headline
   ============================ */
.baha-saas-form-headline {
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* ============================
   Product Info
   ============================ */
.baha-saas-product-info {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
}

.baha-saas-product-name {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.baha-saas-product-desc {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

/* ============================
   Form Fields
   ============================ */
.baha-saas-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

.baha-saas-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.baha-saas-field-group label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.baha-saas-required {
    color: #dc2626;
    font-weight: 700;
}

.baha-saas-field-group input {
    padding: 12px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.baha-saas-field-group input:focus {
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.baha-saas-field-group input::placeholder {
    color: #94a3b8;
}

/* ============================
   Pricing Cards
   ============================ */
.baha-saas-pricing-cards {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.baha-saas-pricing-card {
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    transition: all 0.2s ease;
    background: #ffffff;
}

.baha-saas-pricing-card:hover {
    border-color: #93c5fd;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.1);
}

.baha-saas-card-pro {
    border-color: #bfdbfe;
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
}

.baha-saas-card-trial {
    border-color: #bbf7d0;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
}

.baha-saas-card-badge {
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.baha-saas-card-price {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 14px;
}

.baha-saas-card-price del {
    font-size: 14px;
    color: #94a3b8;
    font-weight: 400;
}

.baha-saas-card-price ins {
    text-decoration: none;
}

/* ============================
   Buttons
   ============================ */
.baha-saas-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.baha-saas-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.baha-saas-btn:active {
    transform: translateY(0);
}

.baha-saas-btn-pro {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
}

.baha-saas-btn-trial {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    color: #ffffff;
}

.baha-saas-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.baha-saas-btn.baha-saas-loading {
    pointer-events: none;
}

.baha-saas-btn-spinner {
    font-size: 14px;
}

/* ============================
   Messages
   ============================ */
.baha-saas-form-message {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

.baha-msg-error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.baha-msg-success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 580px) {
    .baha-saas-form-inner {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .baha-saas-product-name {
        font-size: 18px;
    }

    .baha-saas-card-price {
        font-size: 18px;
    }

    .baha-saas-btn {
        font-size: 15px;
        padding: 12px 16px;
    }
}

/* ============================
   Shimmer animation for loading
   ============================ */
@keyframes baha-saas-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.baha-saas-btn.baha-saas-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 30%, rgba(255,255,255,0.15) 50%, transparent 70%);
    background-size: 200% 100%;
    animation: baha-saas-shimmer 1.5s infinite;
    border-radius: inherit;
}
