/* ==========================================
   SiteRooster Pricing Page Styles
   srh- design system
   ========================================== */


/* ==========================================
   PRICING HERO - Centered
   ========================================== */
.srh-pricing-hero .srh-hero-inner {
    display: flex;
    justify-content: center;
}

.srh-hero-centered {
    text-align: center;
    max-width: 700px;
}

.srh-hero-centered .srh-hero-subtitle {
    margin-bottom: 40px;
}

/* ==========================================
   BILLING TOGGLE
   ========================================== */
.srh-billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    padding: 8px 24px;
    border-radius: 100px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.srh-toggle-label {
    font-size: 15px;
    font-weight: 600;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.srh-toggle-label.active {
    color: #1a1a2e;
}

.srh-save-badge {
    background: linear-gradient(135deg, #22c55e 0%, #34d399 100%);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Toggle Switch */
.srh-toggle-switch {
    position: relative;
    width: 52px;
    height: 28px;
    cursor: pointer;
}

.srh-toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.srh-toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e2e8f0;
    border-radius: 28px;
    transition: 0.3s ease;
}

.srh-toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.srh-toggle-switch input:checked + .srh-toggle-slider {
    background: linear-gradient(135deg, #ff6b47 0%, #ff8a65 100%);
}

.srh-toggle-switch input:checked + .srh-toggle-slider:before {
    transform: translateX(24px);
}

/* ==========================================
   PRICING CARDS SECTION
   ========================================== */
.srh-pricing-cards-section {
    position: relative;
    padding: 80px 60px 100px;
    background: #fafafa;
}

.srh-pricing-cards-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.srh-pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    align-items: start;
}

/* ==========================================
   INDIVIDUAL PRICING CARD
   ========================================== */
.srh-pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.srh-pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* Tier accent bars */
.srh-pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 24px;
    right: 24px;
    height: 4px;
    border-radius: 0 0 4px 4px;
}

.srh-tier-free::before {
    background: #94a3b8;
}

.srh-tier-small::before {
    background: #3b82f6;
}

.srh-tier-medium::before {
    background: #ff6b47;
}

.srh-tier-enterprise::before {
    background: #f59e0b;
}

/* Popular card */
.srh-pricing-card.srh-popular {
    border-color: #ff6b47;
    transform: scale(1.03);
    z-index: 2;
}

.srh-pricing-card.srh-popular:hover {
    transform: scale(1.03) translateY(-8px);
}

.srh-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff6b47 0%, #ff8a65 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(255, 107, 71, 0.3);
}

/* Card Header */
.srh-pricing-card-header {
    margin-bottom: 24px;
}

.srh-plan-name {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
}

.srh-plan-description {
    font-size: 14px;
    color: #64748b;
    margin: 0;
}

/* Card Pricing */
.srh-pricing-card-price {
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #f1f5f9;
}

.srh-price {
    display: flex;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 4px;
}

.srh-currency {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a2e;
    line-height: 1;
    margin-top: 8px;
}

.srh-amount {
    font-size: 56px;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1;
}

.srh-period {
    font-size: 14px;
    color: #64748b;
    display: block;
}

.srh-annual-total {
    display: block;
    font-size: 13px;
    color: #22c55e;
    font-weight: 600;
    margin-top: 4px;
}

/* Features List */
.srh-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 28px 0;
    flex: 1;
}

.srh-features-list li {
    padding: 10px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f8fafc;
}

.srh-features-list li:last-child {
    border-bottom: none;
}

.srh-features-list .srh-icon {
    font-size: 14px;
    flex-shrink: 0;
}

.srh-features-list .srh-included {
    color: #475569;
}

.srh-features-list .srh-included .srh-icon {
    color: #22c55e;
}

.srh-features-list .srh-not-included {
    color: #94a3b8;
}

.srh-features-list .srh-not-included .srh-icon {
    color: #cbd5e1;
}

.srh-features-list .srh-highlight {
    background: #fff4f1;
    margin: 0 -28px;
    padding: 10px 28px;
    border-bottom: none;
}

.srh-features-list strong {
    color: #1a1a2e;
}

/* Card Footer */
.srh-pricing-card-footer {
    margin-top: auto;
}

.srh-enterprise-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ==========================================
   COMPARISON TABLE SECTION
   ========================================== */
.srh-comparison-section {
    position: relative;
    padding: 100px 60px;
    background: #fff;
}

.srh-comparison-inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.srh-comparison-table-wrapper {
    overflow-x: auto;
    margin-top: 50px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.srh-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
}

.srh-comparison-table th,
.srh-comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.srh-comparison-table th:first-child,
.srh-comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    min-width: 180px;
}

.srh-comparison-table thead th {
    background: #f8fafc;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 15px;
    position: sticky;
    top: 0;
}

.srh-comparison-table .srh-category-row td {
    background: #1a1a2e;
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 20px;
}

.srh-comparison-table .srh-highlight-col {
    background: #fff4f1;
}

.srh-comparison-table thead .srh-highlight-col {
    background: #ff6b47;
    color: #fff;
}

.srh-check {
    color: #22c55e;
    font-weight: 700;
}

.srh-cross {
    color: #cbd5e1;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.srh-faq-section {
    position: relative;
    padding: 100px 60px;
    background: #fafafa;
}

.srh-faq-inner {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.srh-faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 50px;
}

.srh-faq-item {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
}

.srh-faq-item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.srh-faq-item h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 12px 0;
}

.srh-faq-item p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    margin: 0;
}

/* ==========================================
   MODAL STYLES
   ========================================== */
#invoiceModal.srh-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 20px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 999999 !important;
    box-sizing: border-box !important;
    backdrop-filter: blur(4px);
    transform: none !important;
}

#invoiceModal.srh-modal-overlay[style*="display: flex"],
#invoiceModal.srh-modal-overlay[style*="display:flex"] {
    display: flex !important;
}

.srh-modal-content {
    background: #ffffff !important;
    border-radius: 20px !important;
    padding: 32px !important;
    width: 100% !important;
    max-width: 480px !important;
    position: relative !important;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25) !important;
    max-height: calc(100vh - 40px) !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
}

.srh-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.srh-modal-close:hover {
    background: #e2e8f0;
    color: #1a1a2e;
}

.srh-modal-content h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 8px 0;
    padding-right: 40px;
}

.srh-modal-subtitle {
    font-size: 14px;
    color: #64748b;
    margin: 0 0 24px 0;
    line-height: 1.5;
}

.srh-form-group {
    margin-bottom: 18px;
}

.srh-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #1a1a2e;
    font-size: 14px;
}

.srh-form-group input,
.srh-form-group select,
.srh-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #ffffff;
    box-sizing: border-box;
    font-family: inherit;
    color: #1a1a2e;
}

.srh-form-group textarea {
    min-height: 90px;
    resize: vertical;
}

.srh-form-group input:focus,
.srh-form-group select:focus,
.srh-form-group textarea:focus {
    outline: none;
    border-color: #ff6b47;
    box-shadow: 0 0 0 3px rgba(255, 107, 71, 0.1);
}

.srh-form-group input::placeholder,
.srh-form-group textarea::placeholder {
    color: #94a3b8;
}

.srh-static-value {
    padding: 12px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #1a1a2e;
    font-weight: 500;
}

.srh-form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.srh-form-actions .srh-btn {
    flex: 1;
}

/* ==========================================
   BUTTON STATES
   ========================================== */
.srh-btn.loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.srh-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: srh-spin 0.8s linear infinite;
}

.srh-btn-primary.loading::after {
    border-top-color: white;
}

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

/* Toast Notification */
.srh-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    border-radius: 12px;
    color: white;
    font-weight: 500;
    font-size: 14px;
    z-index: 10000;
    animation: srh-slideIn 0.3s ease;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.srh-toast.success {
    background: #22c55e;
}

.srh-toast.error {
    background: #ef4444;
}

.srh-toast.info {
    background: #3b82f6;
}

@keyframes srh-slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1100px) {
    .srh-pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .srh-pricing-card.srh-popular {
        transform: none;
    }
    
    .srh-pricing-card.srh-popular:hover {
        transform: translateY(-8px);
    }
}

@media (max-width: 768px) {
    .srh-pricing-cards-section,
    .srh-comparison-section,
    .srh-faq-section {
        padding: 60px 24px;
    }
    
    .srh-pricing-cards-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .srh-pricing-card {
        padding: 28px 24px;
    }
    
    .srh-amount {
        font-size: 48px;
    }
    
    .srh-faq-grid {
        grid-template-columns: 1fr;
    }
    
    .srh-billing-toggle {
        padding: 6px 16px;
        gap: 12px;
    }
    
    .srh-toggle-label {
        font-size: 14px;
    }
    
    .srh-comparison-table {
        font-size: 12px;
    }
    
    .srh-comparison-table th,
    .srh-comparison-table td {
        padding: 12px 10px;
    }
    
    .srh-comparison-table th:first-child,
    .srh-comparison-table td:first-child {
        min-width: 120px;
    }
    
    .srh-features-list .srh-highlight {
        margin: 0 -24px;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    .srh-billing-toggle {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    
    .srh-toggle-label[data-period="annual"] {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 4px;
    }
    
    .srh-form-actions {
        flex-direction: column;
    }
}