/* styles.css */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
#toast-container {
    pointer-events: none; /* Permite clicar através do container */
}
#toast-container .message {
    pointer-events: auto; /* Reativa eventos apenas nas mensagens */
    margin-bottom: 10px;
    transition: transform 0.3s ease-out;
}

.card-content {
    width: 317px;
}

#program-accordion .large.text {
    font-size: 1.1rem !important;
    font-weight: 700;
    color: #333;
}

#toast-container .message:hover {
    transform: translateY(-2px);
}

.ui.message .close.icon {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.ui.message .close.icon:hover {
    opacity: 1;
}

.subscription-selector-container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    height: auto; 
    box-sizing: border-box;
}

/* Header */
.header-title {
    display: flex;
    align-items: center;
    padding: 20px;
    background-color: #e0f7f9;
    border-radius: 8px;
}

.logo {
    width: 80px;
    height: 80px;
    box-shadow: 3px 3px lightblue;
}

.header-text {
    margin-left: 20px;
}

.header-text h1 {
    font-size: 1.5rem;
    color: #333;
}

.header-text p {
    font-size: 0.9rem;
    color: #666;
}

/* Current Plan */
.current-plan {
    margin: 20px 0;
    padding: 10px 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
}

.current-plan span {
    font-weight: bold;
}

.hide-button {
    display: none;
}

.current-plan-button {
    margin-left: 36px;
    border: 2px solid black;
    background-color: white;
    padding: 12px 40px;
    font-size: 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    outline: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: background-color .3s, box-shadow .3s;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Plan Options */
.toggle-plan-container {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    margin-bottom: 40px;
    width: fit-content;
    box-shadow: 0 18px 17px 0 rgba(0, 0, 0, .1);
}

/* Plan Details */
.plan-details {
    display: flex;
    /* height: 588px;*/
    height: auto;
}

.plan-image {
    flex: 1;
    text-align: center;
    padding: 20px;
    max-width: 264px;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    color: #fff;
}

.plan-image.premium {
    background-color: #11c9bf;
}

.plan-image.support-plus {
    background-color: #0d1123;
}

.plan-image .plan-image-wrapper {
    margin-top: -113px;
}

.plan-image .left-phone-img {
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    height: 477px;
}

.left-phone-img.premium {
    background-image: url('/images/program/frame-phone-1.png');
}

.left-phone-img.support-plus {
    background-image: url('/images/program/frame-phone-2.png');
}

.price-info {
    margin-top: -15px;
}

.price-info p {
    font-size: 1.4vw;
    font-weight: bold;
    margin: 5px 0;
}

.price-info .discount {
    font-size: 0.9rem;
    font-weight: 100;
}

.plan-info {
    flex: 2;
    padding: 20px;
}

.plan-info.support-plus {
    border-top: 2px solid #11c9bf;
    border-right: 2px solid #11c9bf;
    border-bottom: 2px solid #11c9bf;
    border-bottom-right-radius: 30px;
    border-top-right-radius: 30px;
}

.plan-info.premium {
    border-top: 2px solid #11c9bf;
    border-right: 2px solid #11c9bf;
    border-bottom: 2px solid #11c9bf;
    border-bottom-right-radius: 30px;
    border-top-right-radius: 30px;
}

.toggle-duration-container {
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 2px 4px #aaa;
    max-width: 376px;
    margin: 0 auto;
}

.toggle-duration-option {
    flex: 1;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    background-color: rgb(171, 237, 233);
    color: #000;
    transition: background-color 0.3s;
    border: 0;
    font-size: 14px;
}

.toggle-duration-option.active {
    background-color: #16c0c8;
    color: #fff;
}

.toggle-duration-option:first-child {
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

.toggle-duration-option:last-child {
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.features-list {
    list-style-type: none;
    margin-top: 23px;
    margin-right: 37px;
    margin-left: 36px;
}

.features-list .span-feature-plus {
    font-size: 1.1vw;
}

.features-list .material-icons {
    color: #11c9bf;
    margin-right: 14px;
    font-size: 1.7rem;
    vertical-align: middle;
    margin-right: 20px;
}

.features-list li {
    margin-bottom: 28px;
    display: flex;
    line-height: 27px;
}

.plan-notice {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #666;
    padding-left: 45px;
}

/* Subscription Notice */
.subscription-notice {
    margin: 20px 0;
    font-size: 0.9rem;
    color: #333;
}

.toggle-plan-button {
    padding: 18px 16px;
    cursor: pointer;
    font-family: Arial, sans-serif;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
    flex: 1 1 auto;
    border: 1px solid #ddd;
}


.toggle-plan-container .support-plus.active {
    background-color: #333333;
    color: #ffffff;
}

.toggle-plan-container .premium.active {
    background-color: #11c9bf;
    color: #ffffff;
}

.toggle-plan-container .inactive {
    background-color: #ffffff;
    color: #000000;
}

.activation-button {
    margin-left: 36px;
    background-color: #000;
    padding: 12px 40px;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    outline: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: background-color .3s, box-shadow .3s;
    margin-top: 10px;
    margin-bottom: 10px;
}

.upgrade-button {
    margin-left: 36px;
    background-color: #000;
    padding: 12px 40px;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    outline: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: background-color .3s, box-shadow .3s;
    margin-top: 10px;
    margin-bottom: 10px;
}

.downgrade-button {
    margin-left: 36px;
    background-color: #3c4252;
    padding: 12px 40px;
    color: #fff;
    font-size: 1rem;
    border: none;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
    outline: 0;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .2);
    transition: background-color .3s, box-shadow .3s;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Loading overlay for programContainer */
#programContainer.loading {
    position: relative;
    pointer-events: none;
}
  
#programContainer.loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1000;
}

#programContainer.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 1001;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}