/* RevRex Brand Colors and Design System */
:root {
  --primary-blue: #0a1b3d;
  --accent-gold: #b5872c;
  --white: #ffffff;
  --light-gray: #f7fafc;
  --error-red: #e53e3e;
  --success-green: #38a169;
  --text-dark: #2d3748;
  --text-light: #718096;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--primary-blue);
  min-height: 100vh;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

/* Card Design */
.plan-card, .email-card, .payment-card, .success-card {
  background: var(--white);
  border-radius: 20px;
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  max-width: 500px;
  width: 100%;
  text-align: center;
}

/* Logo Styles */
.logo {
  width: 180px;
  /* height: auto;
  margin: 0 auto 1.5rem;
  display: inline-block; */
}

.logo-left {
  /* display: none; */
}

/* Typography */
h1 {
  color: var(--text-dark);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.subtitle {
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
}

/* Plan Selection */
.plan-option {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
}

.plan-option:hover {
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 165, 116, 0.2);
}

/* Selected state for plan options */
.plan-option.selected {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(212,165,116,0.06), rgba(212,165,116,0.02));
  box-shadow: 0 12px 30px rgba(26, 54, 93, 0.12);
  transform: translateY(-2px);
}

.plan-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
}

.plan-discount {
  background: var(--accent-gold);
  color: var(--white);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  display: inline-block;
  margin-top: 0.5rem;
}

/* Form Elements */
.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

input[type="email"], input[type="text"] {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="email"]:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.btn-primary {
  background: var(--accent-gold);
  color: var(--white);
}

.btn-primary:hover {
  background: #c19660;
  transform: translateY(-1px);
}

.btn-primary:disabled {
  background: #e6d6c3;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #e2e8f0;
  color: var(--text-dark);
}

.btn-secondary:hover {
  background: #cbd5e0;
}

.btn-block {
  width: 100%;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-gold{
    background: var(--accent-gold);
    color: var(--white);
}

.btn-gold:hover{
    background: #c99b46;
    color: var(--white);
}

.btn-gold:disabled{
    background: #f0cf92;
    color: var(--white);
}

/* Payment Area */
.payment-area {
  display: none;
  /* margin-top: 2rem; */
}

.iframe-wrapper {
  display: none;
  /* margin-top: 2rem; */
}

.iframe-container {
  background: var(--light-gray);
  border-radius: 12px;
  /* padding: 2rem;
  margin: 1rem 0; */
}

/* Success Page */
.success-icon {
  font-size: 4rem;
  color: var(--success-green);
  margin-bottom: 1rem;
}

.transaction-details {
  background: var(--light-gray);
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
  text-align: left;
}

/* Error Messages */
.error-message {
  color: var(--error-red);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

.success-message {
  color: var(--success-green);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
  background-color: var(--white);
  margin: 15% auto;
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  text-align: center;
}

.modal-close {
  color: var(--text-light);
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text-dark);
}

/* Errors */
.alert-error{
    background: var(--error-red);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Contact Info */
.contact-info {
  /* background: var(--light-gray); */
  padding: 1rem;
  border-radius: 8px;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Loading Spinner */
.loading-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(212, 165, 116, 0.3);
  border-radius: 50%;
  border-top-color: var(--accent-gold);
  -webkit-animation: spin 1s ease-in-out infinite;
          animation: spin 1s ease-in-out infinite;
}

@-webkit-keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .plan-card, .email-card, .payment-card, .success-card {
    padding: 2rem;
    margin: 1rem;
  }
  
  .btn-group {
    flex-direction: column;
  }
}
