/* Reset et styles de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #333;
}

/* Typography */
h1, h2 {
  color: #1f2937;
  margin-bottom: 1rem;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
}

.amount {
  color: #dc2626;
  font-weight: 700;
}

/* Header */
.header {
  background-color: #323e48;
  padding: 2rem 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
}

.header-logo img {
  width: 430px;
  height: 102px;
  border-radius: 8px;
}

.back-button {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.back-button:hover {
  color: #ccc;
}

/* Main content */
.main-content {
  background-color: white;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.content-container {
  max-width: 600px;
  width: 100%;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.form-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.form-subtitle {
  color: #6b7280;
  font-size: 1rem;
}

.alert-card {
  border-left: 4px solid #ef4444;
}

.alert-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.success-card {
  text-align: center;
}

.success-icon {
  color: #10b981;
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Forms */
.form {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-label {
  display: flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.5rem;
}

.form-label svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.form-input:hover {
  border-color: #9ca3af;
}

.form-input:focus {
  outline: none;
  border-color: #1f2937;
  box-shadow: 0 0 0 2px rgba(31, 41, 55, 0.2);
}

.form-input.error {
  border-color: #ef4444;
  background-color: #fef2f2;
}

.error-message {
  color: #ef4444;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  transform: scale(1);
}

.btn:hover {
  transform: scale(1.02);
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background-color: #1f2937;
  color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  font-weight: 600;
}

.btn-primary:hover {
  background-color: #111827;
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

.btn-full {
  width: 100%;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  margin-right: 0.5rem;
}

/* Icons */
.icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.svg-icon {
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  vertical-align: middle;
  fill: currentColor;
}

/* Transaction details */
.transaction-details {
  background-color: #f9fafb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.transaction-details h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.detail-label {
  color: #6b7280;
}

.detail-value {
  font-weight: 500;
}

.transaction-id {
  font-family: 'Courier New', monospace;
  font-size: 0.875rem;
  background: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  border: 1px solid #d1d5db;
}

/* Action buttons */
.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .action-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

/* Email confirmation */
.email-confirmation {
  margin-top: 2rem;
  padding: 1rem;
  background-color: #eff6ff;
  border-radius: 8px;
}

.email-confirmation p {
  font-size: 0.875rem;
  color: #1e40af;
}

/* Payment page styles */
.payment-container {
  background-color: white;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}

.payment-layout {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.payment-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
}

.payment-sidebar img {
  width: 128px;
  margin-bottom: 1rem;
}

.payment-form-container {
  flex: 1;
  max-width: 600px;
  background: white;
  border: 2px solid #9ca3af;
  border-radius: 0;
  box-shadow: none;
}

.payment-header {
  background-color: #6b7280;
  color: white;
  text-align: center;
  padding: 1rem;
}

.payment-header .amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: white;
}

.payment-merchant {
  background-color: #e5e7eb;
  text-align: center;
  padding: 0.75rem;
  border-bottom: 1px solid #9ca3af;
}

.payment-merchant span {
  font-size: 0.875rem;
  font-weight: 500;
  color: black;
}

.payment-form {
  padding: 2rem;
  background: white;
}

.payment-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.payment-label {
  font-size: 0.875rem;
  color: #374151;
  width: 50%;
  text-align: right;
  padding-right: 1rem;
}

.payment-input {
  border: 1px solid #9ca3af;
  padding: 0.25rem 0.5rem;
  width: 192px;
  font-size: 0.875rem;
}

.payment-input:focus {
  outline: none;
  border-color: #6b7280;
}

.payment-select {
  border: 1px solid #9ca3af;
  padding: 0.25rem;
  font-size: 0.875rem;
  width: 64px;
}

.payment-expiry {
  display: flex;
  gap: 0.5rem;
}

.payment-cvv {
  width: 64px;
}

.payment-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding-top: 1.5rem;
}

.payment-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.payment-btn-cancel {
  background-color: #666666;
  color: white;
}

.payment-btn-cancel:hover {
  background-color: #555555;
}

.payment-btn-submit {
  background-color: #333333;
  color: white;
}

.payment-btn-submit:hover {
  background-color: #222222;
}

.payment-btn:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
}

.payment-footer {
  text-align: center;
  margin-top: 2rem;
}

.payment-flags {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.payment-flags img {
  width: 24px;
  height: 16px;
}

.payment-info {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.payment-security-text {
  font-size: 0.75rem;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Reassurance section */
.reassurance {
  background-color: #323e48;
  padding: 1.5rem 0;
}

.reassurance-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.reassurance-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: white;
}

.reassurance-item img {
  width: 4rem;
  height: 4rem;
  object-fit: contain;
  margin-bottom: 0.75rem;
}

.reassurance-item h3 {
  font-size: 0.875rem;
  font-weight: 600;
  color: #eed7b6;
  margin-bottom: 0.25rem;
}

.reassurance-item p {
  font-size: 0.75rem;
  color: #d1d5db;
}

/* Warning banner */
.warning-banner {
  background-color: white;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
  padding: 0 1rem;
}

.warning-banner img {
  max-width: 100%;
  width: 766px;
  height: auto;
  object-fit: contain;
  object-fit: contain;
}

/* Footer */
.footer {
  background-color: black;
  color: white;
  padding: 3rem 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #374151;
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.875rem;
  color: #9ca3af;
}

.footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-bottom a:hover {
  color: white;
}

/* Responsive */
@media (max-width: 768px) {
  .payment-layout {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .payment-sidebar {
    width: 100%;
    max-width: 200px;
  }

  .payment-form-container {
    width: 100%;
    max-width: 400px;
  }

  .payment-field {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .payment-label {
    width: 100%;
    text-align: left;
    padding-right: 0;
    font-size: 0.8rem;
  }

  .payment-input {
    width: 100%;
    max-width: 250px;
  }

  .payment-expiry {
    gap: 0.25rem;
  }

  .payment-select {
    width: 50px;
  }

  .payment-cvv {
    width: 60px;
  }

  .payment-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .payment-btn {
    width: 100%;
    max-width: 150px;
  }

  .payment-flags {
    justify-content: center;
    flex-wrap: wrap;
  }

  .payment-info {
    font-size: 0.7rem;
  }

  .payment-security-text {
    font-size: 0.7rem;
    line-height: 1.3;
  }
}