/* Estilos para a página de checkout */
.checkout-hero {
    background: linear-gradient(135deg, #4A90E2 0%, #3A7BC8 100%);
    padding: 60px 0;
    margin-top: 80px;
    text-align: center;
    color: white;
}

.checkout-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: white;
}

.checkout-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.checkout-main {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.checkout-wrapper {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.checkout-form {
    flex: 2;
    min-width: 300px;
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-sidebar {
    flex: 1;
    min-width: 250px;
}

.checkout-form h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    color: #2C3E50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2C3E50;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Estilos customizados para o campo select */
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2C3E50;
}

.form-group select:focus {
    border-color: #4A90E2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-group select:hover {
    border-color: #4A90E2;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A90E2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Estilo para as opções do select */
.form-group select option {
    padding: 10px;
    background-color: white;
    color: #2C3E50;
    font-size: 1rem;
}

.form-group select option:hover {
    background-color: #f8f9fa;
}

.form-group select option:checked {
    background-color: #4A90E2;
    color: white;
}

/* Container especial para o select com ícone */
.select-container {
    position: relative;
    display: inline-block;
    width: 100%;
}

.select-container::before {
    content: "\f0c7"; /* Ícone FontAwesome para objetivo/meta */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6C757D;
    font-size: 1rem;
    z-index: 1;
    transition: color 0.3s ease;
}

.select-container select {
    padding-left: 45px; /* Espaço para o ícone */
}

.select-container:hover::before,
.select-container:focus-within::before {
    color: #4A90E2;
}

/* Estilo para o grupo do select com label melhorada */
.form-group.select-group {
    position: relative;
}

.form-group.select-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2C3E50;
}

.form-group.select-group label::before {
    content: "\f140"; /* Ícone de ajustes/configuração */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 8px;
    color: #4A90E2;
    font-size: 1rem;
}

/* Animação para o select */
.form-group select {
    transform: translateY(0);
    transition: all 0.3s ease;
}

.form-group select:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.15);
}

/* Estilo para validação do select */
.form-group select.valid {
    border-color: #34C759;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334C759' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

.form-group select.invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
}

/* Responsividade para o select */
@media (max-width: 768px) {
    .form-group select {
        font-size: 16px; /* Evita zoom no iOS */
        padding: 14px 15px;
        padding-left: 45px;
    }
    
    .select-container::before {
        font-size: 1.1rem;
    }
}

.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 20px;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.radio-label input {
    margin-right: 8px;
    width: auto;
}

.hidden {
    display: none;
}

.order-summary {
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.plan-details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.plan-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: #2C3E50;
}

.plan-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: #4A90E2;
}

.plan-features ul {
    list-style: none;
    padding: 0;
}

.plan-features ul li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.plan-features ul li i {
    color: #34C759;
    margin-right: 10px;
}

.payment-methods {
    margin-bottom: 30px;
}

.payment-logos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.mp-logo {
    height: 30px;
}

.card-logos {
    display: flex;
    gap: 10px;
    font-size: 1.8rem;
    color: #6C757D;
}

#payment-methods-container,
#card-payment-bricks-container {
    margin-bottom: 20px;
}

.security-info {
    display: flex;
    align-items: center;
    color: #6C757D;
    font-size: 0.9rem;
    margin-top: 15px;
}

.security-info i {
    margin-right: 10px;
    color: #34C759;
}

.checkout-actions {
    margin-top: 30px;
}

.checkout-actions button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
}

.terms-agreement {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #6C757D;
    text-align: center;
}

.terms-agreement a {
    color: #4A90E2;
}

.checkout-summary {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-summary h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e9ecef;
    color: #2C3E50;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #6C757D;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    font-weight: 600;
    font-size: 1.1rem;
    color: #2C3E50;
}

.guarantee-badge {
    display: flex;
    align-items: center;
    background-color: #f8f9fa;
    border-radius: 5px;
    padding: 15px;
    margin-top: 20px;
}

.guarantee-badge i {
    font-size: 2rem;
    color: #4A90E2;
    margin-right: 15px;
}

.guarantee-text h4 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: #2C3E50;
}

.guarantee-text p {
    font-size: 0.85rem;
    color: #6C757D;
    margin: 0;
}

.checkout-help {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.checkout-help h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #2C3E50;
}

.checkout-help p {
    color: #6C757D;
    margin-bottom: 15px;
}

.help-link {
    display: block;
    padding: 10px 0;
    color: #4A90E2;
    text-decoration: none;
}

.help-link i {
    margin-right: 10px;
}

/* Responsividade */
@media (max-width: 768px) {
    .checkout-wrapper {
        flex-direction: column;
    }
    
    .checkout-form,
    .checkout-sidebar {
        width: 100%;
    }
    
    .checkout-hero {
        padding: 40px 0;
        margin-top: 70px;
    }
    
    .checkout-header h1 {
        font-size: 2rem;
    }
}

/* Estilos para o Mercado Pago Bricks */
.mp-card-form {
    max-width: 100%;
    margin: 0 auto;
}

.mp-row {
    display: flex;
    margin-bottom: 15px;
    gap: 15px;
}

.mp-col {
    flex: 1;
}

.mp-form-control {
    background-color: white;
    height: 40px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
}

.mp-helper-text {
    font-size: 0.85rem;
    color: #6C757D;
    margin-top: 5px;
}

.mp-error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
}

/* Animações */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fadeIn {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

/* Animação de pulse para destacar o select */
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(74, 144, 226, 0); }
    100% { box-shadow: 0 0 0 0 rgba(74, 144, 226, 0); }
}

.form-group select:focus {
    animation: pulse 1.5s infinite;
}

