@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

.bunchcrm-pricing-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.bunchcrm-pricing-container * {
    box-sizing: border-box;
}

.bunchcrm-pricing-card {
    background-color: #f7f6f3;
    border-radius: 24px;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bunchcrm-pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Info Card (Left) */
.bunchcrm-info-card {
    justify-content: flex-start;
    background-color: #faf9f6;
    border: none;
}

.bunchcrm-title-main {
    font-size: 38px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 24px 0;
    letter-spacing: -0.5px;
}

.bunchcrm-description-main {
    font-size: 16px;
    line-height: 1.6;
    color: #6e6d6a;
    margin: 0;
    font-weight: 400;
}

/* Plan Cards (Middle & Right) */
.bunchcrm-plan-title {
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.bunchcrm-price-wrapper {
    display: flex;
    align-items: baseline;
    margin-bottom: 4px;
}

.bunchcrm-price-amount {
    font-size: 34px;
    font-weight: 700;
    color: #000000;
}

.bunchcrm-price-period {
    font-size: 20px;
    font-weight: 500;
    color: #6e6d6a;
    margin-left: 4px;
}

.bunchcrm-tax-info {
    font-size: 14px;
    color: #6e6d6a;
    margin-bottom: 30px;
    font-weight: 500;
}

.bunchcrm-includes-label {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin-bottom: 16px;
}

.bunchcrm-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    flex-grow: 1;
}

.bunchcrm-features-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.4;
    color: #1e1e1e;
}

.bunchcrm-features-list li:last-child {
    margin-bottom: 0;
}

.bunchcrm-check-icon {
    font-size: 16px;
    font-weight: bold;
    color: #000000;
    margin-right: 12px;
    margin-top: 1px;
    flex-shrink: 0;
}

.bunchcrm-feature-text {
    font-weight: 500;
    color: #333333;
}

.bunchcrm-feature-text.font-weight-bold {
    font-weight: 700;
}

/* Buttons */
.bunchcrm-button-wrapper {
    width: 100%;
}

.bunchcrm-btn-primary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #000000;
    color: #ffffff;
    padding: 18px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
}

.bunchcrm-btn-primary:hover {
    background-color: #222222;
}

.bunchcrm-btn-primary:active {
    transform: scale(0.98);
}

.bunchcrm-arrow {
    font-size: 20px;
    transition: transform 0.2s ease;
    display: inline-block;
}

.bunchcrm-btn-primary:hover .bunchcrm-arrow {
    transform: translateX(4px);
}

/* Yearly Card specific (Right) */
.bunchcrm-yearly-card {
    background: linear-gradient(135deg, #fbf7da 0%, #d5f7e6 100%);
    border: none;
}

/* ==========================================
   MODAL POPUP STYLING
   ========================================== */

/* Modal Overlay */
.bunchcrm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    padding: 20px;
    box-sizing: border-box;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.bunchcrm-modal-overlay * {
    box-sizing: border-box;
}

/* Modal Container */
.bunchcrm-modal-container {
    background: #ffffff;
    border-radius: 24px;
    max-width: 960px;
    width: 100%;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    overflow: hidden;
    animation: bunchcrmFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bunchcrmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Close Button */
.bunchcrm-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    background: #f5f5f3;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #6e6d6a;
    transition: background-color 0.2s, color 0.2s;
    z-index: 100;
    line-height: 1;
    padding: 0;
}

.bunchcrm-modal-close:hover {
    background-color: #e5e5e3;
    color: #000000;
}

/* Modal Body */
.bunchcrm-modal-body {
    display: flex;
    flex-direction: row;
    height: 100%;
    max-height: 90vh;
}

/* Modal Left (Plan info) */
.bunchcrm-modal-left {
    flex: 1;
    background-color: #faf9f6;
    padding: 44px;
    border-right: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.bunchcrm-badge-trial {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    background-color: #f3e8ff;
    color: #7c4dff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.bunchcrm-rocket {
    margin-right: 6px;
}

.bunchcrm-modal-heading {
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #000000;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.bunchcrm-modal-subheading {
    font-size: 14px;
    line-height: 1.5;
    color: #6e6d6a;
    margin: 0 0 30px 0;
    font-weight: 400;
}

/* Selected Plan Box */
.bunchcrm-selected-plan-container {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    width: 100%;
}

.bunchcrm-selected-plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.bunchcrm-selected-plan-label {
    font-size: 10px;
    font-weight: 700;
    color: #8e8d8a;
    letter-spacing: 0.5px;
}

.bunchcrm-change-plan-link {
    font-size: 12px;
    font-weight: 600;
    color: #7c4dff;
    text-decoration: none;
}

.bunchcrm-change-plan-link:hover {
    text-decoration: underline;
}

.bunchcrm-selected-plan-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bunchcrm-selected-plan-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.bunchcrm-selected-plan-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.bunchcrm-selected-plan-name {
    font-size: 18px;
    font-weight: 700;
    color: #000000;
}

.bunchcrm-selected-plan-price {
    font-size: 16px;
    font-weight: 700;
    color: #7c4dff;
}

.bunchcrm-selected-plan-gst {
    font-size: 12px;
    font-weight: 500;
    color: #6e6d6a;
    margin-top: 4px;
}

.bunchcrm-selected-plan-total {
    font-size: 15px;
    font-weight: 700;
    color: #000000;
    margin-top: 4px;
}

.bunchcrm-selected-plan-badge {
    display: inline-block;
    background: #f4f4f2;
    color: #6e6d6a;
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    margin-top: 6px;
    margin-bottom: 0;
    letter-spacing: 0.5px;
}

.bunchcrm-modal-specs {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 14px 0;
    margin-bottom: 16px;
}

.bunchcrm-spec-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 12px;
}

.bunchcrm-spec-row:last-child {
    margin-bottom: 0;
}

.bunchcrm-spec-label {
    color: #8e8d8a;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.bunchcrm-spec-value {
    color: #000000;
    font-weight: 700;
}

.bunchcrm-selected-plan-desc {
    font-size: 12px;
    color: #6e6d6a;
    line-height: 1.5;
    margin: 0;
}

/* Modal Right (Form) */
.bunchcrm-modal-right {
    flex: 1.25;
    padding: 44px;
    overflow-y: auto;
    max-height: 90vh;
}

.bunchcrm-form-group {
    margin-bottom: 16px;
}

.bunchcrm-form-group:last-of-type {
    margin-bottom: 24px;
}

.bunchcrm-form-label {
    font-size: 11px;
    font-weight: 700;
    color: #8e8d8a;
    margin-bottom: 8px;
    display: block;
    letter-spacing: 0.5px;
}

.bunchcrm-form-input,
.bunchcrm-form-select {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: 1.5px solid #e5e5e3;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    color: #000000;
    background-color: #ffffff;
}

.bunchcrm-form-input:focus,
.bunchcrm-form-select:focus {
    border-color: #7c4dff;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

.bunchcrm-form-input::placeholder {
    color: #b0afab;
}

/* Subdomain Specifics */
.bunchcrm-subdomain-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e5e3;
    border-radius: 10px;
    background-color: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.bunchcrm-subdomain-wrapper:focus-within {
    border-color: #7c4dff;
    box-shadow: 0 0 0 3px rgba(124, 77, 255, 0.1);
}

.bunchcrm-subdomain-input {
    border: none !important;
    border-radius: 0 !important;
    margin-bottom: 0 !important;
    flex-grow: 1;
    padding: 12px 16px;
    box-shadow: none !important;
}

.bunchcrm-subdomain-suffix {
    background: #f5f5f3;
    padding: 12px 16px;
    color: #6e6d6a;
    font-size: 14px;
    font-weight: 600;
    border-left: 1.5px solid #e5e5e3;
    user-select: none;
}

.bunchcrm-form-help {
    font-size: 11px;
    color: #8e8d8a;
    margin-top: 6px;
    display: block;
    line-height: 1.4;
}

/* Error message */
.bunchcrm-form-error-msg {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 16px;
    border: 1px solid #ffcdd2;
}

/* Submit Button */
.bunchcrm-btn-submit {
    background-color: #7c4dff;
    color: #ffffff;
    width: 100%;
    padding: 16px;
    border-radius: 40px;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bunchcrm-btn-submit:hover {
    background-color: #693be7;
}

.bunchcrm-btn-submit:active {
    transform: scale(0.99);
}

.bunchcrm-btn-submit[disabled] {
    background-color: #b39ddb;
    cursor: not-allowed;
}

.bunchcrm-form-footer-text {
    font-size: 12px;
    color: #8e8d8a;
    text-align: center;
    margin: 16px 0 0 0;
    font-weight: 500;
}

/* Responsive Breakdown */
@media (max-width: 991px) {
    .bunchcrm-pricing-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .bunchcrm-info-card {
        grid-column: span 2;
        min-height: auto;
        padding: 40px;
    }
}

@media (max-width: 860px) {
    .bunchcrm-modal-body {
        flex-direction: column;
        overflow-y: auto;
    }
    .bunchcrm-modal-left {
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        padding: 32px 28px;
    }
    .bunchcrm-modal-right {
        padding: 32px 28px;
        max-height: none;
        overflow-y: visible;
    }
    .bunchcrm-modal-container {
        max-width: 500px;
    }
}

@media (max-width: 767px) {
    .bunchcrm-pricing-container {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 20px auto;
    }
    .bunchcrm-info-card {
        grid-column: span 1;
    }
    .bunchcrm-pricing-card {
        padding: 36px 28px;
        min-height: auto;
    }
}

/* Payment Success State */
.bunchcrm-payment-success-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 400px;
    padding: 20px;
    animation: bunchcrmFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bunchcrm-success-check-icon {
    width: 72px;
    height: 72px;
    background-color: #d4f6e5;
    color: #0f5132;
    font-size: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-weight: bold;
}

.bunchcrm-success-title {
    font-size: 28px;
    font-weight: 700;
    color: #000000;
    margin: 0 0 16px 0;
}

.bunchcrm-success-desc {
    font-size: 15px;
    color: #6e6d6a;
    line-height: 1.6;
    margin: 0;
    max-width: 320px;
    font-weight: 500;
}

