/* ============================================
   CHECKOUT PAGE STYLES
   Multi-step checkout form
   ============================================ */

.checkout-hero {
  padding: 100px 0 30px;
  background: linear-gradient(135deg,
    var(--primary) 0%,
    var(--secondary) 50%,
    var(--primary) 100%
  );
  background-size: 200% 200%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.checkout-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(255,255,255,0.1) 0%, transparent 50%);
  pointer-events: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.checkout-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.checkout-hero-left {
  flex: 1;
  text-align: left;
}

.checkout-hero-right {
  flex-shrink: 0;
}

.checkout-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: white;
  line-height: 1.2;
  animation: fadeInLeft 0.6s ease;
}

.checkout-subtitle {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
  max-width: 500px;
  animation: fadeInLeft 0.6s ease 0.1s backwards;
}

.checkout-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 0.5rem;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeInRight 0.6s ease 0.2s backwards;
  transition: all 0.3s ease;
}

.checkout-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.checkout-badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Checkout Content */
.checkout-content {
  padding: 60px 0 100px;
}

.checkout-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

/* Order Summary (Left) */
.checkout-summary {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.summary-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}

.summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border);
  flex-wrap: wrap;
  gap: 1rem;
}

.summary-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

/* Billing Period Toggle */
.billing-toggle {
  display: flex;
  background: var(--bg-secondary);
  border-radius: 0.5rem;
  padding: 0.25rem;
  gap: 0.25rem;
}

.billing-option {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.billing-option:hover {
  color: var(--text-primary);
}

.billing-option.active {
  background: var(--bg-primary);
  color: var(--primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem 0.375rem;
  background: #10b981;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 0.25rem;
}

/* Plan Badge */
.plan-badge-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 0.75rem;
  margin-bottom: 1.5rem;
}

.plan-badge-icon {
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.plan-badge-icon svg {
  stroke: white;
}

.plan-badge-content {
  flex: 1;
}

.plan-badge-name {
  font-size: 1.125rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.25rem;
}

.plan-badge-subtitle {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Features List */
.plan-features-summary {
  margin-bottom: 1.5rem;
}

.features-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.feature-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  stroke: #10b981;
}

/* Pricing Section */
.summary-pricing {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.summary-pricing .summary-item {
  margin-bottom: 0;
}

.summary-pricing .summary-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.summary-pricing .summary-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

/* Trust Badges */
.trust-badges {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.875rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  flex: 1;
  min-width: 140px;
}

.trust-badge svg {
  flex-shrink: 0;
  stroke: #10b981;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.summary-label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.summary-sublabel {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.summary-value {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
}

.summary-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

.summary-total {
  margin-bottom: 0;
}

.summary-total .summary-label {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-primary);
}

.summary-total .summary-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3b82f6;
}

.summary-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.summary-note {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  margin-top: 1.5rem;
  padding: 0.875rem;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.summary-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 0.625rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.summary-note svg {
  flex-shrink: 0;
  stroke: #3b82f6;
  margin-top: 2px;
}

.summary-secure svg {
  flex-shrink: 0;
  stroke: white;
}

/* Checkout Form Container */
.checkout-form-container {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2.5rem;
}

/* Progress Steps */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.step.completed .step-number {
  background: #10b981;
  border-color: #10b981;
  color: white;
}

.step-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #9ca3af;
}

.step.active .step-label {
  color: #3b82f6;
  font-weight: 600;
}

.step.completed .step-label {
  color: #10b981;
  font-weight: 600;
}

.step-connector {
  width: 80px;
  height: 2px;
  background: var(--border);
  margin: 0 1rem;
  margin-bottom: 24px;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  border-bottom: 2px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: 1rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.3s ease;
}

.auth-tab:hover {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.auth-tab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.auth-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.auth-content.active {
  display: block;
}

/* Divider */
.divider {
  position: relative;
  text-align: center;
  margin: 1.5rem 0;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.divider span {
  position: relative;
  background: var(--bg-primary);
  padding: 0 1rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  z-index: 1;
}

/* Checkout Steps Content */
.checkout-step {
  animation: fadeIn 0.3s ease;
}

.checkout-step.hidden {
  display: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-title {
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.link-primary {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  margin-left: 0.5rem;
}

.link-primary:hover {
  text-decoration: underline;
}

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

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.form-input {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  margin-top: 0.25rem;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1rem;
  padding: 0.875rem 1.5rem;
  margin-top: 1rem;
}

.btn-google {
  background: white !important;
  color: #333 !important;
  border: 1px solid #dadce0 !important;
  font-weight: 500;
}

.btn-google:hover {
  background: #f8f9fa !important;
  border-color: #dadce0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-google svg {
  width: 20px;
  height: 20px;
}

/* Payment Logos in Checkout */
.payment-logos-checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.iyzico-checkout-badge {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Responsive */
@media (max-width: 968px) {
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .checkout-summary {
    position: static;
    order: 2;
  }

  .checkout-form-container {
    padding: 1.5rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .checkout-hero {
    padding: 100px 0 30px;
  }

  .checkout-hero-content {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .checkout-hero-left {
    text-align: center;
  }

  .checkout-subtitle {
    max-width: 100%;
  }

  .checkout-title {
    font-size: 1.5rem;
  }

  .checkout-subtitle {
    font-size: 0.875rem;
  }

  .checkout-badge {
    padding: 0.75rem 1rem;
    font-size: 0.8125rem;
  }

  .step-connector {
    width: 60px;
  }
}

@media (max-width: 640px) {
  .checkout-steps {
    scale: 0.9;
  }

  .step-label {
    font-size: 0.75rem;
  }

  .checkout-hero {
    padding: 90px 0 25px;
  }

  .checkout-title {
    font-size: 1.25rem;
  }

  .checkout-subtitle {
    font-size: 0.8125rem;
  }

  .checkout-badge {
    font-size: 0.75rem;
    padding: 0.625rem 0.875rem;
    gap: 0.5rem;
  }

  .checkout-badge svg {
    width: 16px;
    height: 16px;
  }
}

/* ===================================
   Step 3: Success Page Styles
   =================================== */

.success-container {
  text-align: center;
  padding: 2rem 0;
}

.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 50%;
  margin: 0 auto 2rem;
  animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon svg {
  stroke: white;
  stroke-width: 3;
  animation: checkmarkDraw 0.5s ease-in-out 0.3s forwards;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

@keyframes successPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes checkmarkDraw {
  to {
    stroke-dashoffset: 0;
  }
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.success-message {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.order-summary-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  text-align: left;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.order-summary-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  text-align: center;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--border-color);
}

.order-details {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.order-detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.order-detail-label {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.order-detail-value {
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-weight: 600;
}

.order-total {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--border-color);
}

.order-total .order-detail-label {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
}

.order-amount {
  font-size: 1.5rem !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
}

.plan-period {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  transition: all 0.3s ease;
}

.btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(99, 102, 241, 0.3);
}

/* Responsive adjustments for success page */
@media (max-width: 768px) {
  .success-icon {
    width: 100px;
    height: 100px;
  }

  .success-icon svg {
    width: 60px;
    height: 60px;
  }

  .success-title {
    font-size: 1.5rem;
  }

  .success-message {
    font-size: 1rem;
  }

  .order-summary-card {
    padding: 1.5rem;
  }

  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .success-container {
    padding: 1rem 0;
  }

  .success-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
  }

  .success-icon svg {
    width: 50px;
    height: 50px;
  }

  .success-title {
    font-size: 1.25rem;
  }

  .success-message {
    font-size: 0.9375rem;
    margin-bottom: 1.5rem;
  }

  .order-summary-card {
    padding: 1.25rem;
  }

  .order-summary-title {
    font-size: 1.125rem;
  }

  .order-detail-label,
  .order-detail-value {
    font-size: 0.875rem;
  }

  .order-amount {
    font-size: 1.25rem !important;
  }

  .btn-large {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
  }
}

/* ===================================
   Forgot Password Modal Styles
   =================================== */

#forgot-password-modal.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 1rem;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

#forgot-password-modal .modal-container {
  background: var(--bg-primary);
  border-radius: 1rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
  position: relative;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

#forgot-password-modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

#forgot-password-modal .modal-back-btn {
  position: absolute;
  left: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#forgot-password-modal .modal-back-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

#forgot-password-modal .modal-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
  text-align: center;
}

#forgot-password-modal .modal-close-btn {
  position: absolute;
  right: 1.25rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 0.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#forgot-password-modal .modal-close-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

#forgot-password-modal .modal-body {
  padding: 2rem;
}

#forgot-password-modal .modal-description {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 2rem;
  line-height: 1.6;
}

#forgot-password-modal .modal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

#forgot-password-modal .form-hint {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  line-height: 1.5;
}

#forgot-password-modal .modal-footer-text {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
}

#forgot-password-modal .modal-footer-text p {
  color: var(--text-secondary);
  margin: 0;
}

/* Modal responsive */
@media (max-width: 640px) {
  #forgot-password-modal .modal-container {
    max-width: 100%;
    margin: 0.5rem;
    border-radius: 0.75rem;
  }

  #forgot-password-modal .modal-header {
    padding: 1.25rem;
  }

  #forgot-password-modal .modal-title {
    font-size: 1.125rem;
  }

  #forgot-password-modal .modal-body {
    padding: 1.5rem;
  }

  #forgot-password-modal .modal-description {
    font-size: 0.875rem;
  }
}
