:root {
  --bg: #000000;
  --accent: #ff0f64;
  --accent-hover: #e60056;
  --text: #ffffff;
  --text-muted: #aaaaaa;
  --card-bg: #1a1a1a;
  --card-border: #2a2a2a;
  --error: #ff4444;
  --success: #00ff88;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow: 0 4px 20px rgba(255, 15, 100, 0.15);
  --shadow-lg: 0 8px 40px rgba(255, 15, 100, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(ellipse at top, #25112e 0%, #000000 50%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  direction: rtl;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  padding: 40px 20px;
  margin-bottom: 40px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.logo-icon {
  font-size: 48px;
  filter: drop-shadow(0 0 20px var(--accent));
}

.brand-name {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b9d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}

.tagline {
  color: var(--text-muted);
  font-size: 18px;
  font-weight: 300;
}

.reassurance-banner {
  background: linear-gradient(135deg, rgba(255, 15, 100, 0.1) 0%, rgba(255, 107, 157, 0.05) 100%);
  border: 1px solid rgba(255, 15, 100, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 40px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-muted);
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 30px;
  color: var(--text);
}

.devices-section {
  margin-bottom: 60px;
}

.devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.device-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.device-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 15, 100, 0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.device-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.device-card:hover::before {
  opacity: 1;
}

.device-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--accent);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 1;
}

.device-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: drop-shadow(0 10px 30px rgba(255, 15, 100, 0.2));
}

.device-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
}

.device-pricing {
  margin-bottom: 20px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.price-label {
  color: var(--text-muted);
  font-size: 14px;
}

.price-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}

.price-value small {
  font-size: 16px;
  color: var(--text-muted);
}

.btn-select {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff3377 100%);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-select:hover {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #e6004d 100%);
  box-shadow: var(--shadow);
  transform: scale(1.02);
}

.checkout-section {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-bottom: 40px;
}

.selected-device-card {
  background: linear-gradient(135deg, rgba(255, 15, 100, 0.1) 0%, rgba(255, 107, 157, 0.05) 100%);
  border: 1px solid rgba(255, 15, 100, 0.3);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.selected-device-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
}

.selected-device-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.selected-device-price {
  color: var(--accent);
  font-size: 18px;
  font-weight: 600;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  background: #0a0a0a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 15, 100, 0.1);
}

.form-group textarea {
  resize: vertical;
  font-family: inherit;
}

.error-message {
  color: var(--error);
  font-size: 12px;
  display: none;
}

.error-message.visible {
  display: block;
}

.autocomplete-wrapper {
  position: relative;
}

.autocomplete-suggestions {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  background: #0a0a0a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  list-style: none;
  margin-top: 4px;
  display: none;
}

.autocomplete-suggestions.visible {
  display: block;
}

.autocomplete-suggestions li {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.autocomplete-suggestions li:hover {
  background: var(--card-bg);
}

.autocomplete-suggestions li.active {
  background: var(--card-bg);
  color: var(--accent);
}

.payment-method-toggle {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.toggle-label {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #0a0a0a;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-label input[type="radio"] {
  display: none;
}

.toggle-label span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-muted);
}

.toggle-label input[type="radio"]:checked + span {
  color: var(--accent);
}

.toggle-label:has(input[type="radio"]:checked) {
  background: rgba(255, 15, 100, 0.1);
  border-color: var(--accent);
}

.consent-checkbox {
  margin-top: 10px;
}

.consent-checkbox label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.consent-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.consent-checkbox span {
  font-size: 14px;
  color: var(--text-muted);
}

.btn-submit {
  padding: 16px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff3377 100%);
  color: var(--text);
  border: none;
  border-radius: var(--radius);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--accent-hover) 0%, #e6004d 100%);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loader {
  display: none;
}

.btn-submit.loading .btn-text {
  display: none;
}

.btn-submit.loading .btn-loader {
  display: inline;
}

.thank-you-message {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
}

.thank-you-icon {
  font-size: 72px;
  margin-bottom: 20px;
  filter: drop-shadow(0 0 20px var(--success));
}

.thank-you-message h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--success);
}

.thank-you-message p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn-secondary {
  padding: 14px 32px;
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: var(--accent);
  color: var(--text);
}

@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .devices-grid {
    grid-template-columns: 1fr;
  }

  .checkout-section {
    padding: 16px;
  }

  .brand-name {
    font-size: 28px;
  }

  .section-title {
    font-size: 22px;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    min-height: 48px;
  }
  
  .btn-select,
  .btn-submit,
  .btn-primary,
  .btn-secondary {
    padding: 14px 20px;
    font-size: 16px;
    min-height: 48px;
  }
  
  .payment-method-toggle {
    flex-direction: column;
  }
  
  .toggle-label {
    padding: 14px;
  }
  
  .device-card {
    padding: 16px;
  }
  
  .selected-device-card {
    flex-direction: column;
    text-align: center;
  }
  
  .selected-device-image {
    width: 100px;
    height: 100px;
  }
}

/* Error Modal Styles */
.error-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.error-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.error-modal-content {
  position: relative;
  background: var(--card-bg);
  border: 2px solid var(--accent);
  border-radius: 20px;
  padding: 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(255, 15, 100, 0.3);
  animation: slideUp 0.3s ease;
}

.error-modal-icon {
  font-size: 60px;
  margin-bottom: 15px;
}

.error-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 15px;
}

.error-modal-message {
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 25px;
}

.error-modal-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 40px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.error-modal-btn:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 15, 100, 0.4);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
