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

  body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      line-height: 1.6;
      color: #333;
      background-color: #fafafa;
  }

  /* Header */
  header {
      background-color: white;
      padding: 1.5rem;
      border-bottom: 1px solid #e5e5e5;
      position: sticky;
      top: 0;
      z-index: 100;
  }

  .logo {
      font-size: 1.8rem;
      font-weight: bold;
      text-align: center;
      color: #000;
      letter-spacing: 2px;
  }

  /* Main Container */
  .checkout-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 2rem 1rem;
      display: grid;
      grid-template-columns: 1fr 400px;
      gap: 3rem;
  }

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

  /* Left Column - Form */
  .checkout-form {
      background: white;
      padding: 2rem;
      border-radius: 8px;
      border: 1px solid #e5e5e5;
  }

  .form-section {
      margin-bottom: 2.5rem;
  }

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

  .section-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: #000;
  }

  .form-group {
      margin-bottom: 1.25rem;
  }

  .form-group label {
      display: block;
      margin-bottom: 0.5rem;
      font-weight: 500;
      font-size: 0.95rem;
      color: #333;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
      width: 100%;
      padding: 0.875rem;
      border: 1px solid #d1d1d1;
      border-radius: 6px;
      font-size: 1rem;
      font-family: inherit;
      transition: border-color 0.2s;
  }

  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus {
      outline: none;
      border-color: #0066CC;
      box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
  }

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

  .char-count {
      font-size: 0.85rem;
      color: #666;
      text-align: right;
      margin-top: 0.25rem;
  }

  /* Amount Selection */
  .amount-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 0.75rem;
      margin-bottom: 1rem;
  }

  @media (max-width: 600px) {
      .amount-grid {
          grid-template-columns: repeat(2, 1fr);
      }
  }

  .amount-option {
      border: 2px solid #d1d1d1;
      border-radius: 6px;
      padding: 1rem 0.5rem;
      text-align: center;
      cursor: pointer;
      transition: all 0.2s;
      font-weight: 600;
      font-size: 1.1rem;
  }

  .amount-option:hover {
      border-color: #0066CC;
  }

  .amount-option.selected {
      border-color: #0066CC;
      background-color: #f0f7ff;
      color: #0066CC;
  }

  .custom-amount-wrapper {
      position: relative;
      margin-top: 1rem;
  }

  .custom-amount-wrapper input {
      padding-right: 2rem;
  }

  .custom-amount-wrapper::after {
      content: '€';
      position: absolute;
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
      font-weight: 600;
      color: #666;
  }

  /* Background Selection */
  .background-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 1rem;
  }

  .background-option {
      border: 2px solid #d1d1d1;
      border-radius: 6px;
      padding: 0.5rem;
      cursor: pointer;
      transition: all 0.2s;
      text-align: center;
  }

  .background-option:hover {
      border-color: #0066CC;
  }

  .background-option.selected {
      border-color: #0066CC;
      background-color: #f0f7ff;
  }

  .background-preview {
      width: 100%;
      height: 100px;
      border-radius: 4px;
      margin-bottom: 0px;
  }

  .bg-fitness {
      background-image: url("/images/tausta-3.jpg");
      background-size: cover;
      background-position: center;

  }

  .bg-wellness {
      background-image: url("/images/tausta-4.jpg");
      background-size: cover;
      background-position: center;

  }

  .bg-christmas {
      background-image: url("/images/tausta-2.jpg");
      background-size: cover;
      background-position: center;
  }

  .bg-celebration {
      background-image: url("/images/tausta-1.jpg");
      background-size: cover;
      background-position: center;

  }



  /* Payment Method */
  .payment-option {
      border: 2px solid #d1d1d1;
      border-radius: 6px;
      padding: 1.25rem;
      margin-bottom: 1rem;
      cursor: pointer;
      transition: all 0.2s;
  }

  .payment-option:hover {
      border-color: #0066CC;
  }

  .payment-option.selected {
      border-color: #0066CC;
      background-color: #f0f7ff;
  }

  .payment-header {
      display: flex;
      align-items: center;
      gap: 0.75rem;
  }

  .payment-radio {
      width: 20px;
      height: 20px;
      border: 2px solid #d1d1d1;
      border-radius: 50%;
      position: relative;
      flex-shrink: 0;
  }

  .payment-option.selected .payment-radio {
      border-color: #0066CC;
  }

  .payment-option.selected .payment-radio::after {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      width: 10px;
      height: 10px;
      background-color: #0066CC;
      border-radius: 50%;
  }

  .payment-label {
      font-weight: 600;
      font-size: 1rem;
  }

  .payment-details {
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: 1px solid #e5e5e5;
      display: none;
  }

  .payment-option.selected .payment-details {
      display: block;
  }

  .payment-info {
      font-size: 0.9rem;
      color: #666;
      margin-top: 0.5rem;
  }

  /* Right Column - Summary */
  .order-summary {
      background: white;
      padding: 2rem;
      border-radius: 8px;
      border: 1px solid #e5e5e5;
      height: fit-content;
      position: sticky;
      top: 100px;
  }

  .summary-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: #000;
  }

  .gift-card-preview {
      width: 100%;
      height: 180px;
      border-radius: 8px;
      margin-bottom: 1.5rem;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 1.5rem;
      color: white;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.5);
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .preview-amount {
      font-size: 2.5rem;
      font-weight: bold;
      margin-bottom: 0.5rem;
  }

  .preview-message {
      font-size: 0.95rem;
      opacity: 0.95;
      margin-top: 0.5rem;
      font-style: italic;
  }

  .summary-row {
      display: flex;
      justify-content: space-between;
      padding: 0.75rem 0;
      border-bottom: 1px solid #e5e5e5;
  }

  .summary-row:last-child {
      border-bottom: none;
      font-weight: 600;
      font-size: 1.2rem;
      padding-top: 1rem;
      margin-top: 0.5rem;
      border-top: 2px solid #e5e5e5;
  }

  .summary-label {
      color: #666;
  }

  .summary-value {
      font-weight: 600;
      color: #000;
  }

  /* Button */
  .btn-primary {
      width: 100%;
      padding: 1.125rem;
      background-color: #0066CC;
      color: white;
      border: none;
      border-radius: 6px;
      font-size: 1.1rem;
      font-weight: 600;
      cursor: pointer;
      transition: background-color 0.2s;
      margin-top: 1.5rem;
  }

  .btn-primary:hover {
      background-color: #0052a3;
  }

  .btn-primary:disabled {
      background-color: #cccccc;
      cursor: not-allowed;
      opacity: 0.7;
  }

  .btn-primary:disabled:hover {
      background-color: #cccccc;
  }

  .btn-secondary {
      width: 100%;
      padding: 1rem;
      background-color: #f5f5f5;
      color: #333;
      border: 1px solid #d1d1d1;
      border-radius: 6px;
      font-size: 1rem;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.2s;
      margin-top: 0.75rem;
      text-decoration: none;
      display: block;
      text-align: center;
  }

  .btn-secondary:hover {
      background-color: #e5e5e5;
  }

  .secure-note {
      text-align: center;
      font-size: 0.85rem;
      color: #666;
      margin-top: 1rem;
  }

  footer {
      background-color: white;
      padding: 2rem 1rem;
      text-align: center;
      color: #666;
      font-size: 0.9rem;
      border-top: 1px solid #e5e5e5;
      margin-top: 3rem;
  }

  /* Terms Checkbox Styles */
  .terms-agreement {
      background-color: #f9f9f9;
      padding: 1rem;
      border-radius: 6px;
      border: 1px solid #e5e5e5;
  }

  .terms-agreement label {
      display: flex;
      align-items: flex-start;
      gap: 0.75rem !important;
      cursor: pointer;
      font-size: 0.95rem !important;
      color: #333;
      user-select: none;
  }

  .terms-agreement input[type="checkbox"] {
      width: 1.2rem;
      height: 1.2rem;
      margin-top: 0.1rem !important;
      accent-color: #0066CC;
      cursor: pointer;
  }

  /* Modal Styles */
  .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: flex;
      justify-content: center;
      align-items: center;
      z-index: 1000;
  }

  .modal-overlay.hidden {
      display: none;
  }

  .modal-container {
      background-color: white;
      width: 90%;
      max-width: 800px;
      max-height: 90vh;
      border-radius: 8px;
      display: flex;
      flex-direction: column;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  }

  .modal-header {
      padding: 1.5rem;
      border-bottom: 1px solid #e5e5e5;
      display: flex;
      justify-content: space-between;
      align-items: center;
  }

  .modal-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #000;
      margin: 0;
  }

  .modal-close {
      background: none;
      border: none;
      font-size: 2rem;
      color: #666;
      cursor: pointer;
      line-height: 1;
      padding: 0;
  }

  .modal-close:hover {
      color: #000;
  }

  .modal-body {
      padding: 1.5rem;
      overflow-y: auto;
      line-height: 1.7;
      font-size: 0.95rem;
  }

  .modal-body h3 {
      font-size: 1.2rem;
      font-weight: 600;
      margin: 1.5rem 0 1rem;
      color: #000;
  }

  .modal-body h4 {
      font-size: 1.1rem;
      font-weight: 600;
      margin: 1.25rem 0 0.75rem;
      color: #333;
  }

  .modal-body p {
      margin-bottom: 1rem;
  }

  .modal-body ul {
      margin-bottom: 1rem;
      padding-left: 1.5rem;
  }

  .modal-body li {
      margin-bottom: 0.5rem;
  }