/* --- Standalone Pricing Table Styles --- */

section#buy-license {
    background-color: #1D2026;
    color: #fff;
    border-top: 1px solid #2F333B;
    padding-top: 80px;
    padding-bottom: 80px;
}

section#buy-license .container-sm {
    max-width: 768px;
    margin: 0 auto;
    padding: 0 16px;
}

section#buy-license .section-inner {
    /* No specific styles needed, inherits from main */
}

section#buy-license .text-center {
    text-align: center;
}

section#buy-license .section-title {
    font-size: 32px; /* Matching other titles */
    margin-top: 0;
}

section#buy-license .section-paragraph {
    font-size: 18px;
    color: #A3A9B9;
}

section#buy-license .mt-32 {
    margin-top: 32px;
}

section#buy-license .pricing-tables-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin-top: 30px;
}

section#buy-license .pricing-table {
    flex: 1 1 300px;
    max-width: 330px;
    transition: transform .3s ease, box-shadow .3s ease;
    position: relative; /* For ribbon */
    display: flex; /* Ensure inner content can grow */
}

section#buy-license .pricing-table-inner {
    background: #191B20;
    border: 2px solid #3c414d; /* Increased border width for better visibility */
    border-radius: 8px;
    padding: 30px;
    width: 100%;
    display: flex;
    flex-direction: column;
    text-align: center;
    overflow: hidden;
    transition: border-color .3s ease, box-shadow .3s ease;
}

section#buy-license .pricing-table:hover {
    transform: translateY(-7px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Featured Plan */
section#buy-license .pricing-table.is-featured .pricing-table-inner {
    border-color: #4c80f1;
    box-shadow: 0 0 15px rgba(76, 128, 241, 0.2);
}

/* --- Style for the selected pricing plan --- */
section#buy-license .pricing-table.selected .pricing-table-inner {
    border-color: #5dffb9; /* A bright, contrasting color */
    box-shadow: 0 0 25px rgba(93, 255, 185, 0.3);
}


.ribbon {
    position: absolute;
    top: 15px;
    right: -30px;
    transform: rotate(45deg);
    background-color: #4c80f1;
    color: #ffffff;
    padding: 4px 35px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

section#buy-license .pricing-table-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #3c414d;
}

section#buy-license .pricing-table-title {
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
}

section#buy-license .pricing-table-price {
    font-size: 44px;
    font-weight: 700;
    line-height: 1;
    color: #4c80f1;
    margin-top: 8px;
}

section#buy-license .pricing-table-price-currency {
    font-size: 22px;
    vertical-align: super;
    margin-right: 1px;
}

section#buy-license .pricing-table-features-title {
    margin: 20px 0 15px;
    font-weight: 700;
    color: #a3a9b9;
    font-size: 14px;
}

section#buy-license .pricing-table-features {
    color: #a3a9b9;
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    flex-grow: 1;
}

section#buy-license .pricing-table-features li {
    margin-bottom: 10px;
}

section#buy-license .pricing-table-cta {
    margin-top: auto;
}

/* Custom Radio Button */
section#buy-license .custom-radio {
    display: block;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    user-select: none;
    color: #ffffff;
    background-color: transparent;
    border: 2px solid #4c80f1;
    padding: 12px 20px;
    border-radius: 6px;
    transition: all .3s ease;
    width: 100%;
}

section#buy-license .custom-radio input {
    position: absolute;
    opacity: 0;
}

section#buy-license .custom-radio:hover {
    background-color: #4c80f1;
    color: #ffffff;
}

/* Keep button style static, selection is now on the card border */
section#buy-license input[type="radio"]:checked + label {
    background-color: #4c80f1;
    color: #ffffff;
}


/* Form Styles */
section#buy-license .cta-form {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

section#buy-license .form-label {
    text-align: left;
    display: block;
    margin-bottom: .5rem;
}

section#buy-license .form-input {
    display: block;
    width: 100%;
    padding: .75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #fff;
    background-color: #252830;
    background-clip: padding-box;
    border: 1px solid #3c414d;
    border-radius: .25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

section#buy-license .form-input:focus {
    color: #fff;
    background-color: #252830;
    border-color: #4c80f1;
    outline: 0;
    box-shadow: 0 0 0 .2rem rgba(76,128,241,.25);
}

section#buy-license .form-error-message {
    display:none;
    text-align:left;
    color: #ff6a6a;
    font-size: 14px;
    margin-top: 4px;
}

/* Modal Styles */
.payment-modal {
    display: none; /* Must be none by default */
    position: fixed;
    z-index: 1050;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(20, 22, 26, 0.85);
    animation: fadeIn .3s;
    align-items: center; /* For vertical centering */
    justify-content: center; /* For horizontal centering */
}

.payment-modal-content {
    position: relative;
    background-color: #1c1f26;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    width: 420px; /* A good width for a payment widget */
    height: 750px; /* A generous height to avoid internal scrolling */
    padding: 20px; /* Some padding for aesthetics */
    box-sizing: border-box; /* Makes padding inclusive of width/height */
    display: flex; /* Use flexbox to manage internal layout */
    flex-direction: column;
    margin: auto; /* Attempt to force centering */
}

#payment_widget_container {
    flex-grow: 1; /* Allow the widget container to fill the space */
    width: 100%;
    height: 100%;
}

.payment-modal-content iframe {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    border: none;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 10px;
    right: 15px; /* Changed from 20px to 15px */
    font-size: 28px; /* Changed from 32px to 28px */
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 1001; /* Added to ensure it's above the iframe */
}

.close-button:hover,
.close-button:focus {
    color: #fff;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}