:root {
    --primary: #d1701f;
    --dark: #000000;
    --light: #f3f3f3;
    --white: #ffffff;
    --purple: #8068F3;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ddd;
}

.logo img {
    max-width: 150px;
    height: auto;
}

.page-title {
    margin-bottom: 30px;
}

.page-title h1 {
    font-size: 28px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 10px;
}

.page-title p {
    font-size: 16px;
    color: #555;
}

.checkout-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.order-summary {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.checkout-actions {
    flex: 1;
    min-width: 300px;
    background-color: var(--white);
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.plan-details {
    margin-bottom: 30px;
}

.plan-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.plan-tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 10px;
}

.plan-tag-free {
    background-color: #e0f2f1;
    color: #009688;
}

.plan-tag-paid1 {
    background-color: #e8f5e9;
    color: #43a047;
}

.plan-tag-paid2 {
    background-color: #e1f5fe;
    color: #0288d1;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 5px;
}

.plan-period {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.price-comparison {
    background-color: #f8f9fa;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

.price-comparison .savings {
    color: #43a047;
    font-weight: 600;
}

.features-list {
    list-style: none;
    margin-bottom: 25px;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 14px;
}

.features-list li::before {
    content: "✓";
    color: var(--primary);
    font-weight: bold;
    margin-right: 10px;
}

/* Seletor de Período */
.period-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #ddd;
}

.period-selector label {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

.period-toggle {
    display: flex;
    background-color: #fff;
    border-radius: 8px;
    padding: 4px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.period-option {
    padding: 10px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    border: none;
    background: transparent;
    color: #666;
    position: relative;
    z-index: 1;
}

.period-option.active {
    background-color: var(--primary);
    color: var(--white);
}

.discount-badge {
    display: inline-block;
    background-color: #43a047;
    color: white;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 5px;
    font-weight: 600;
}

.summary-table {
    width: 100%;
    margin-bottom: 20px;
}

.summary-table tr {
    border-bottom: 1px solid #eee;
}

.summary-table tr:last-child {
    border-bottom: none;
}

.summary-table td {
    padding: 10px 0;
}

.summary-table .label {
    color: #666;
}

.summary-table .value {
    text-align: right;
    font-weight: 500;
}

.summary-table .strikethrough {
    text-decoration: line-through;
    color: #999;
    font-size: 18px;
}

.summary-table .validity-info {
    background-color: #e8f5e9;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    color: #2e7d32;
    font-weight: 500;
}

.checkout-button {
    display: inline-block;
    width: 100%;
    padding: 15px 0;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
    margin-bottom: 15px;
}

.checkout-button:hover {
    background-color: #b15607;
}

.back-link {
    display: inline-block;
    width: 100%;
    padding: 15px 0;
    background-color: transparent;
    color: var(--dark);
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s;
    text-decoration: none;
}

.back-link:hover {
    background-color: #f5f5f5;
}

.secure-note {
    display: flex;
    align-items: center;
    margin-top: 20px;
    color: #666;
    font-size: 14px;
}

.secure-note svg {
    margin-right: 10px;
    fill: #43a047;
}

.checkout-note {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.account-required {
    background-color: #fff3e0;
    border-left: 4px solid var(--primary);
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
}

.account-required h3 {
    font-size: 16px;
    margin-bottom: 5px;
    color: var(--dark);
}

.account-required p {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.account-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.account-button {
    flex: 1;
    padding: 10px 0;
    text-align: center;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

.login-button {
    background-color: var(--white);
    color: var(--primary);
    border: 1px solid var(--primary);
}

.login-button:hover {
    background-color: #fff8f2;
}

.register-button {
    background-color: var(--primary);
    color: var(--white);
    border: 1px solid var(--primary);
}

.register-button:hover {
    background-color: #b15607;
}

@media (max-width: 768px) {
    .checkout-container {
        flex-direction: column;
    }
    
    .period-selector {
        flex-direction: column;
        gap: 10px;
    }
}
