* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.text-h2 {
    font-size: 36px;
    line-height: 48px;
    font-weight: 700;
}

.text-h3 {
    font-size: 28px;
    line-height: 40px;
    font-weight: 700;
}

.text-h5 {
    font-size: 18px;
    line-height: 30px;
    font-weight: 700;
}

.text-p12 {
    font-size: 12px;
    line-height: 20px;
    font-weight: 400;
}

.text-p14 {
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
}

.text-p14-bold {
    font-size: 14px;
    line-height: 22px;
    font-weight: 700;
}

.text-p16 {
    font-size: 16px;
    line-height: 24px;
    font-weight: 400;
}

.text-p16-bold {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
}

.text-p18 {
    font-size: 18px;
    line-height: 28px;
    font-weight: 400;
}

.text-p18-bold {
    font-size: 18px;
    line-height: 28px;
    font-weight: 700;
}

.text-p20-bold {
    font-size: 20px;
    line-height: 32px;
    font-weight: 700;
}

/* Color variables from config */
:root {
    --grey-2: #999999;
    --button-2: #294F9B;
    --semantic-text-link: #317AE8;
    --light-blue: #F5F6F7;
}

.packages-container {
    max-width: 1440px;
    padding: 80px 0 205px;
    margin: 0 auto;
    padding-left: 16px;
    padding-right: 16px;
    scroll-margin-top: 95px;
}

@media (min-width: 1280px) {
    .packages-container {
        padding-left: 150px;
        padding-right: 150px;
    }
}

.packages-header {
    margin-bottom: 56px;
    text-align: center;
}

.packages-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

@media (min-width: 640px) {
    .packages-title {
        font-size: 36px;
        line-height: 48px;
    }
}

.packages-desc {
    font-size: 14px;
    color: #666666;
    line-height: 30px;
}

@media (min-width: 640px) {
    .packages-desc {
        font-size: 18px;
        line-height: 28px;
    }
}

.tab-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 56px;
}

.tab-wrapper {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #F5F6F7;
    padding: 8px;
    border-radius: 9999px;
    width: fit-content;
}

.tab-item {
    padding: 10px 40px;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
}

.tab-item.active {
    background: white;
}

.tab-item:not(.active):hover {
    background: #ECEFF1;
}

.packages-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 56px;
    align-items: stretch;
    justify-content: center;
}

@media (min-width: 1024px) {
    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.package-card {
    max-width: 550px;
    width: 100%;
    padding: 16px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    height: 100%;
}

@media (min-width: 640px) {
    .package-card {
        padding: 40px;
    }
}

.package-basic {
    background: #FFF7F5;
}

.package-pro {
    background: #FFF9EC;
}

.package-study {
    background: #294F9B;
    color: white;
}

.package-custom {
    background: #F2F5F0;
}

.package-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.package-name {
    font-size: 18px;
    line-height: 30px;
    color: #666666;
    font-weight: 700;
}

.package-study .package-name {
    color: white;
}

.learn-more {
    font-size: 12px;
    font-style: italic;
    color: #317AE8;
    font-weight: 700;
    cursor: pointer;
}

.package-study .learn-more {
    color: white;
}

.package-price {
    font-size: 18px;
    line-height: 30px;
    font-weight: 700;
    margin-bottom: 8px;
}

@media (min-width: 1024px) {
    .package-price {
        font-size: 28px;
        line-height: 40px;
    }
}

.package-study .package-price {
    color: white;
}

.package-description {
    font-size: 12px;
    font-style: italic;
    color: #666666;
    line-height: 1.4;
}

.package-study .package-description {
    color: white;
}

.features-list {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.feature-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    flex-shrink: 0;
}

.basic-icon {
    background: #F5C1B3;
}

.pro-icon {
    background: #F6BB3A;
}

.study-icon {
    background: #FFEBBF;
}

.custom-icon {
    background: #B9E09F;
}

.feature-text {
    font-size: 16px;
    font-weight: 700;
    line-height: 28px;
}

@media (max-width: 767px) {
    .feature-text {
        font-size: 14px;
        line-height: 26px;
    }
}

.package-study .feature-text {
    color: white;
}

.feature-subtext {
    font-size: 12px;
    font-style: italic;
    color: #666666;
    margin-top: 4px;
}

.package-btn {
    width: 100%;
    border-radius: 9999px;
    padding: 16px;
    height: 62px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-basic {
    background: #FBE4DF;
    color: #000;
}

.btn-pro {
    background: #FBEFD6;
    color: #000;
}

.btn-study {
    background: white;
    color: #294F9B;
}

.btn-custom {
    background: white;
    color: #000;
}

.package-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 16px 24px rgba(38, 58, 124, 0.08);
}

.pro-controls {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.control-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.control-label {
    font-size: 16px;
    color: #666666;
}

.control-input {
    padding: 8px 16px;
    border-radius: 9999px;
    background: white;
    height: 43px;
    width: 142px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border: none;
    outline: none;
}

.coming-soon {
    padding: 8px 16px;
    border-radius: 9999px;
    background: white;
    height: 43px;
    width: 142px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.custom-checkbox.checked {
    background: #B9E09F;
    border-radius: 50%;
}

.custom-checkbox:not(.checked) {
    border: 2px solid #B9E09F;
    border-radius: 4px;
}

.custom-star {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.custom-features {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.custom-feature-main {
    display: flex;
    align-items: center;
    gap: 16px;
}

.custom-feature-sub {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.custom-feature-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.feature-disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .control-input {
        display: none;
    }
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 24px 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: all 0.3s;
}

.modal-content {
    width: 100vw;
    max-width: 800px;
    min-height: fit-content;
    margin-top: 40px;
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s forwards;
}

@media (min-width: 640px) {
    .modal-content {
        padding: 40px;
    }
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 40px;
}

@media (min-width: 640px) {
    .modal-title {
        font-size: 28px;
        line-height: 40px;
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-input {
    width: 100%;
    padding: 16px;
    border: 1px solid #E6E6E6;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
}

.form-input:focus {
    border-color: #294F9B;
}

.form-error {
    font-size: 14px;
    color: #DB2E24;
    margin-top: 4px;
}

.form-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 40px;
}

.btn-cancel {
    width: 140px;
    height: 56px;
    background: white;
    color: #294F9B;
    border: 1px solid #294F9B;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-submit {
    width: 140px;
    height: 56px;
    background: #294F9B;
    color: white;
    border: none;
    border-radius: 9999px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-cancel:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0px 16px 24px rgba(38, 58, 124, 0.08);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
