/* Gift Purchase Page Styles */
@import url('./theme.css');

.gift-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Hero Section */
.gift-hero {
  text-align: center;
  margin-bottom: 60px;
}

.gift-hero h1 {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--primary);
}

.gift-hero .subtitle {
  font-size: 20px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* Gift Options */
.gift-options {
  margin-bottom: 60px;
}

.gift-options h2 {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.gift-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.gift-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-warm-light);
}

.gift-card.featured {
  border-color: var(--accent-warm);
  box-shadow: var(--shadow-xl);
  border-width: 2px;
}

.ribbon {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--accent-warm);
  color: var(--text-inverse);
  padding: 8px 40px;
  transform: rotate(45deg);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.gift-card-header {
  padding: 30px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}

.gift-card-header h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: var(--primary);
}

.gift-card-header .price {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent-warm);
  margin-bottom: 8px;
}

.gift-card-header .price-note {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

.gift-card-content {
  padding: 30px;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
  color: var(--text);
}

.features li:last-child {
  border-bottom: none;
}

.select-gift {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent-warm), var(--accent-warm) 60%, #e68900);
  color: var(--text-inverse);
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  transition: all var(--transition-slow);
  min-height: 48px;
}

.select-gift:hover {
  background: linear-gradient(135deg, #e68900, var(--accent-warm));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.3);
}

.subscription-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  margin-top: 12px;
  font-style: italic;
}

/* Gift Form Section */
.gift-form-section {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-bottom: 60px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.gift-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.form-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.form-section h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.selected-product {
  background: var(--background);
  padding: 16px;
  border-radius: var(--radius-base);
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--border-light);
}

.selected-product .label {
  color: var(--text-light);
}

.selected-product #selected-product-name {
  font-weight: 600;
  color: var(--primary);
  flex: 1;
}

.selected-product a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
}

.selected-product a:hover {
  color: var(--accent-warm);
  text-decoration: underline;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="date"],
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-base);
  color: var(--text);
  font-size: 16px;
  transition: all var(--transition-fast);
  font-family: var(--font-ui);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-warm);
  box-shadow: 0 0 0 4px var(--accent-warm-light);
  background: var(--surface);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.help-text {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
}

.required {
  color: #ff4444;
}

/* Radio buttons */
.form-group label input[type="radio"] {
  margin-right: 8px;
  margin-bottom: 12px;
}

/* Form Actions */
.form-actions {
  text-align: center;
  margin-top: 40px;
}

.button.large {
  padding: 18px 40px;
  font-size: 18px;
}

.secure-notice {
  font-size: 14px;
  color: #999;
  margin-top: 16px;
}

/* How It Works */
.how-it-works {
  text-align: center;
  margin-bottom: 60px;
}

.how-it-works h2 {
  font-size: 32px;
  margin-bottom: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step {
  text-align: center;
}

.step-number {
  width: 60px;
  height: 60px;
  background: #4A90E2;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.step p {
  color: #999;
  line-height: 1.6;
}

/* FAQs */
.gift-faqs {
  max-width: 800px;
  margin: 0 auto;
}

.gift-faqs h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 48px;
  color: var(--primary);
  font-weight: 700;
}

.faq-list {
  display: grid;
  gap: 24px;
}

.faq-item {
  background: var(--surface);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-warm);
}

.faq-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent-warm);
  transform: scaleY(0);
  transition: transform var(--transition-base);
}

.faq-item:hover::before {
  transform: scaleY(1);
}

.faq-item h3 {
  font-size: 21px;
  margin-bottom: 16px;
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
}

.faq-item h3::before {
  content: 'Q';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent-warm-light);
  color: var(--accent-warm);
  border-radius: 50%;
  font-size: 16px;
  font-weight: 700;
  flex-shrink: 0;
}

.faq-item p {
  color: var(--text);
  line-height: 1.8;
  font-size: var(--text-base);
  margin-left: 44px;
}

/* Responsive */
@media (max-width: 768px) {
  .gift-hero h1 {
    font-size: 36px;
  }
  
  .gift-cards {
    grid-template-columns: 1fr;
  }
  
  .gift-form-section {
    padding: 24px;
  }
  
  .steps {
    grid-template-columns: 1fr;
  }
}