/* Checkout Styles */

/* Hero Section */
.checkout-hero {
  padding: 160px 0 60px;
  background: linear-gradient(120deg, #1a1a1a 0%, #2d2d2d 100%);
  color: white;
  text-align: center;
}

.checkout-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.checkout-header p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Checkout Content */
.checkout-content {
  padding: 80px 0;
  background-color: var(--light);
}

.checkout-wrapper {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.checkout-section {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.section-title {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--light-gray);
}

.section-title h2 {
  font-size: 1.5rem;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title h2 i {
  color: #d4af37;
}

/* Planos Checkout */
.planos-checkout {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plano-option {
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.plano-option:hover {
  border-color: #d4af37;
  transform: translateY(-2px);
}

.plano-option.active {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.05);
}

/* .plano-option.popular {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.05);
} */

.popular-badge {
  position: absolute;
  top: -10px;
  right: 20px;
  background-color: #d4af37;
  color: white;
  font-size: 0.8rem;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 500;
}

.plano-radio {
  position: relative;
  margin-top: 5px;
}

.plano-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.plano-radio label {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-radius: 50%;
  display: block;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.plano-radio label::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #d4af37;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: var(--transition);
}

.plano-radio input[type="radio"]:checked + label {
  border-color: #d4af37;
}

.plano-radio input[type="radio"]:checked + label::after {
  transform: translate(-50%, -50%) scale(1);
}

.plano-info {
  flex: 1;
}

.plano-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--dark);
}

.plano-info p {
  color: var(--gray);
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.plano-price {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.plano-price .price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #d4af37;
}

.plano-price .period {
  color: var(--gray);
  font-size: 0.9rem;
}

.plano-features {
  margin-top: 15px;
}

.plano-features ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.plano-features ul li {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray);
}

.plano-features ul li i {
  color: #d4af37;
  margin-right: 8px;
  font-size: 0.8rem;
}

/* Form Styles */
.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.form-group label {
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark);
  font-size: 0.9rem;
}

.form-group input {
  padding: 12px 15px;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: white;
}

.form-group input:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.select-container {
  position: relative;
}

select#country {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  background-color: #fff;
  font-size: 1rem;
  color: var(--dark);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23333' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 15px) center;
  background-size: 12px;
  padding-right: 35px;
  cursor: pointer;
  transition: var(--transition);
}

select#country:focus {
  outline: none;
  border-color: #d4af37;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

input#telefone {
  padding-left: 15px;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.form-group input::placeholder {
  color: var(--gray);
}

/* Payment Methods */
.payment-methods {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.payment-option {
  flex: 1;
  border: 2px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-option:hover {
  border-color: #d4af37;
}

.payment-option.active {
  border-color: #d4af37;
  background-color: rgba(212, 175, 55, 0.05);
}

.payment-radio {
  position: relative;
}

.payment-radio input[type="radio"] {
  opacity: 0;
  position: absolute;
}

.payment-radio label {
  width: 20px;
  height: 20px;
  border: 2px solid var(--light-gray);
  border-radius: 50%;
  display: block;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
}

.payment-radio label::after {
  content: "";
  width: 10px;
  height: 10px;
  background-color: #d4af37;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: var(--transition);
}

.payment-radio input[type="radio"]:checked + label {
  border-color: #d4af37;
}

.payment-radio input[type="radio"]:checked + label::after {
  transform: translate(-50%, -50%) scale(1);
}

.payment-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.payment-info i {
  font-size: 1.2rem;
  color: #d4af37;
}

.payment-info span {
  font-weight: 500;
  color: var(--dark);
}

/* Payment Forms */
.payment-form {
  display: none;
  margin-top: 20px;
}

.payment-form.active {
  display: block;
}

.pix-info,
.boleto-info {
  background-color: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.pix-info i,
.boleto-info i {
  color: #d4af37;
  font-size: 1.2rem;
}

.pix-info p,
.boleto-info p {
  margin: 0;
  color: var(--gray);
}

/* Checkout Sidebar */
.checkout-sidebar {
  position: sticky;
  top: 120px;
  height: fit-content;
}

.order-summary {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.order-summary h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--dark);
  text-align: center;
}

.selected-plan {
  background-color: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  padding: 15px;
  margin-bottom: 20px;
  text-align: center;
}

.plan-name {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 5px;
}

.plan-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: #d4af37;
}

.order-details {
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
  padding: 20px 0;
  margin-bottom: 20px;
}

.order-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--gray);
}

.order-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--dark);
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid var(--light-gray);
}

.checkout-actions {
  margin-bottom: 25px;
}

.btn-checkout {
  width: 100%;
  padding: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.security-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--gray);
  font-size: 0.9rem;
}

.security-info i {
  color: #d4af37;
}

.benefits {
  background-color: var(--light);
  border-radius: var(--border-radius);
  padding: 20px;
}

.benefits h4 {
  font-size: 1rem;
  margin-bottom: 15px;
  color: var(--dark);
}

.benefits ul li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--gray);
}

.benefits ul li i {
  color: #d4af37;
  margin-right: 10px;
  font-size: 0.8rem;
}

/* Payment Loading */
.payment-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  background-color: rgba(212, 175, 55, 0.05);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--border-radius);
  margin: 20px 0;
}

.loading-content {
  text-align: center;
  color: #d4af37;
}

.loading-content i {
  font-size: 2rem;
  margin-bottom: 15px;
  animation: spin 1s linear infinite;
}

.loading-content p {
  margin: 0;
  font-weight: 500;
  color: var(--gray);
}

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

/* Mercado Pago Brick Customization */
#paymentBrick_container {
  margin: 20px 0;
}

/* Notification Styles */
.payment-notification {
  animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 1024px) {
  .checkout-wrapper {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .checkout-sidebar {
    position: static;
    order: -1;
  }
}

@media (max-width: 768px) {
  .checkout-hero {
    padding: 120px 0 40px;
  }

  .checkout-header h1 {
    font-size: 2rem;
  }

  .checkout-content {
    padding: 40px 0;
  }

  .checkout-section {
    padding: 20px;
  }

  .payment-methods {
    flex-direction: column;
  }

  .plano-option {
    flex-direction: column;
    align-items: flex-start;
  }

  .plano-features ul {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .checkout-header h1 {
    font-size: 1.8rem;
  }

  .order-summary {
    padding: 20px;
  }
}
