:root {
    --navy: #0B1F55;
    --ink: #0A0F1F;
    --muted: #6B7280;
    --line: #E6EAF2;
    --accent: #0b1f55;
    --green: #10B981;
    --red: #EF4444;
    --orange: #F59E0B;
    --purple: #8B5CF6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

.container {
    width: min(1200px, 94%);
    margin: 0 auto;
}

.pricing-hero {
    padding: 60px 0 40px;
    text-align: center;
}

.pricing-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--ink);
}

.pricing-hero h1 .accent {
    color: var(--accent);
}

.pricing-hero .subtitle {
    color: var(--muted);
    font-size: 16px;
    margin-bottom: 32px;
}

.billing-toggle {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 48px;
}

.toggle-option {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 32px;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.toggle-option:has(input:checked) {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
}

.toggle-option input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.toggle-option label {
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.category-selection {
    margin-bottom: 48px;
}

.category-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 12px;
    padding: 32px 24px;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 42px rgba(12, 26, 68, .18);
}

.pricing-card.selected {
    border-color: var(--accent);
    box-shadow: 0 8px 24px rgba(43, 51, 178, 0.3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.plan-badge.small {
    background: #D1FAE5;
    color: var(--accent);
}

.plan-badge.multi {
    background: #FEF3C7;
    color: var(--orange);
}

.plan-badge.leasing {
    background: #E0E7FF;
    color: #4F46E5;
}

.plan-badge.communities {
    background: #EDE9FE;
    color: var(--purple);
}

.radio-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.pricing-card.selected .radio-dot {
    border-color: var(--accent);
    background: var(--accent);
}

.radio-dot-inner {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #fff;
    opacity: 0;
    transition: opacity 0.2s;
}

.pricing-card.selected .radio-dot-inner {
    opacity: 1;
}

.plan-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.plan-description {
    font-size: 14px;
    margin-bottom: 16px;
    min-height: 60px;
}

.plan-price {
    font-weight: 800;
    color: var(--accent);
}

.plan-price-label {
    font-size: 14px;
    color: var(--muted);
}

.sliders-panel {
    display: none;
    margin-top: 48px;
    padding: 32px;
    background: #F9FAFB;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.sliders-panel.visible {
    display: block;
}

.section-header {
    text-align: center;
    margin-bottom: 32px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--muted);
    font-size: 16px;
}

.small-owner-plan {
    background: #fff;
    border: 2px solid var(--accent);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
}

.small-owner-plan h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
}

.small-owner-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.small-owner-price span {
    font-size: 18px;
    color: var(--muted);
}

.small-owner-plan ul {
    text-align: left;
    margin-top: 24px;
    list-style: none;
    padding: 0;
}

.small-owner-plan li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

.small-owner-plan li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

.slider-row {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--line);
}

.slider-row:last-child {
    border-bottom: none;
}

.slider-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.slider-subtext {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 16px;
}

.slider-container {
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

input[type="range"] {
    flex: 1;
    height: 8px;
    border-radius: 12px;
    background: var(--line);
    outline: none;
    -webkit-appearance: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    border: none;
}

.slider-value {
    min-width: 120px;
    text-align: right;
}

.slider-value-number {
    font-size: 18px;
    font-weight: 700;
}

.slider-value-cost {
    font-size: 14px;
    color: var(--muted);
}

.slider-section {
    width: 50%;
    padding: 0 2rem;
}

.price-summary {
    width: 50%;
    ;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    border: 2px solid var(--accent);
}

.price-summary-label {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

.price-summary-amount {
    font-size: 48px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 24px;
}

.summary-table {
    width: 100%;
    border-collapse: collapse;
}

.summary-table th {
    text-align: left;
    padding: 12px 0;
    font-weight: 600;
    border-bottom: 2px solid var(--line);
}

.summary-table td {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.summary-table .align-right {
    text-align: right;
}

.cta-section {
    text-align: center;
    padding: 48px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin: 60px 0;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.cta-section p {
    color: var(--accent);
    font-size: 16px;
    margin-bottom: 24px;
}

.cta-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
    cursor: pointer;
}

.cta-btn:hover {
    background: #fff;
    color: var(--navy);
}

.faq-section {
    margin-bottom: 80px;
    display: none;
}

.faq-section.visible {
    display: block;
}

.faq-section h2 {
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: #F9FAFB;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}

.faq-question:hover {
    background: #F3F4F6;
}

.faq-toggle {
    transition: transform 0.3s;
    font-size: 14px;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 24px 24px;
    color: var(--muted);
    line-height: 1.7;
}

.faq-answer-content ul {
    margin: 12px 0 0 20px;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal-overlay.visible {
    display: flex;
}

.modal-card {
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.modal-title {
    font-size: 24px;
    font-weight: 700;
}

.modal-close {
    border: none;
    background: transparent;
    font-size: 24px;
    cursor: pointer;
    color: var(--muted);
    padding: 0;
    width: 32px;
    height: 32px;
}

.modal-close:hover {
    color: var(--ink);
}

.modal-subtitle {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 24px;
}

.modal-form-group {
    margin-bottom: 16px;
}

.modal-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.modal-input,
.modal-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
}

.modal-input:focus,
.modal-textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-textarea {
    min-height: 100px;
    resize: vertical;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-secondary {
    padding: 12px 24px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #F9FAFB;
}

.btn-primary {
    padding: 12px 24px;
    border: none;
    background: var(--accent);
    border: 2px solid var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary:hover {
  background: #fff;
  color: var(--accent);
}

.start-payment .btn{
    width: 100%;
}

.flash-button {
    animation: flashPulse 1s infinite alternate;
}

@keyframes flashPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(43, 178, 76, 0.7);
    }

    100% {
        transform: scale(1.05);
        box-shadow: 0 0 20px 8px rgba(43, 178, 76, 0.4);
    }
}

@media (max-width: 768px) {
    .pricing-hero h1 {
        font-size: 32px;
    }

    .billing-toggle {
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .slider-container {
        flex-direction: column;
        align-items: stretch;
    }

    .slider-value {
        text-align: left;
    }

    .slider-section {
        width: 100%;
        padding: 0;
    }

    .price-summary {
        margin-top: 32px;
        width: 100%;
    }
}