
:root {
  --primary: #223645;
  --primary-light: #2d495f;
  --primary-dark: #1a2b3a;
  --secondary: #4a90e2;
  --accent: #f5a623;
  --light: #f8f9fa;
  --gray: #6c757d;
  --gray-light: #e9ecef;
  --success: #28a745;
  --border-radius: 8px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}
* {
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4edf5 100%);
  margin: 0;
  padding: 0;
  color: #333;
  line-height: 1.6;
}
.container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}
.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 20px;
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  border-top: 5px solid var(--primary);
}
.header h1 {
  color: var(--primary);
  margin: 0 0 10px;
  font-size: 2.2rem;
}
.header p {
  color: var(--gray);
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
}
.form-container {
  background-color: white;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  overflow: hidden;
}
.form-stepper {
  display: flex;
  background-color: var(--primary);
  padding: 0;
  margin: 0;
}
.step {
  flex: 1;
  text-align: center;
  padding: 15px 10px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  position: relative;
  cursor: pointer;
  transition: var(--transition);
}
.step.active {
  color: white;
  background-color: var(--primary-light);
}
.step.completed {
  color: white;
  background-color: rgba(34, 54, 69, 0.9);
}
.step-number {
  display: inline-block;
  width: 30px;
  height: 30px;
  line-height: 30px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  margin-right: 10px;
  font-weight: bold;
}
.step.active .step-number {
  background-color: var(--accent);
  color: var(--primary);
}
.step.completed .step-number {
  background-color: var(--success);
  color: white;
}
.form-content {
  padding: 40px;
}
.section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-light);
}
.section:last-child {
  border-bottom: none;
}
.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--primary-light);
}
.section-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary-light);
  color: white;
  border-radius: 50%;
  margin-right: 15px;
  font-size: 1.3rem;
  font-weight: bold;
}
.section-title {
  color: var(--primary);
  margin: 0;
  font-size: 1.4rem;
}
.row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}
.col-4 {
  flex: 0 0 calc(33.333% - 20px);
}
.col-6 {
  flex: 0 0 calc(50% - 20px);
}
.col-12 {
  flex: 0 0 100%;
}
.input-group {
  margin-bottom: 20px;
}
.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--primary);
  font-weight: 500;
}
.input-group input, 
.input-group textarea,
.input-group select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background-color: #fdfdfd;
}
.input-group input:focus, 
.input-group textarea:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}
.input-group input::placeholder,
.input-group textarea::placeholder {
  color: #aaa;
}
.input-group textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}
.form-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid var(--gray-light);
}
.btn {
  padding: 14px 30px;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary {
  background-color: var(--primary);
  color: white;
}
.btn-primary:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(34, 54, 69, 0.2);
}
.btn-secondary {
  background-color: var(--gray-light);
  color: var(--primary);
}
.btn-secondary:hover {
  background-color: #ddd;
}
.btn-icon {
  margin-right: 8px;
}
.payment-summary {
  background-color: #f8f9fa;
  padding: 25px;
  border-radius: var(--border-radius);
  margin-bottom: 30px;
  border-left: 4px solid var(--accent);
}
.payment-summary h4 {
  margin-top: 0;
  color: var(--primary);
  margin-bottom: 15px;
}
.payment-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.payment-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}
.payment-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-top: 10px;
}
.required::after {
  content: " *";
  color: #e74c3c;
}
@media (max-width: 992px) {
  .col-4, .col-6 {
    flex: 0 0 100%;
  }
  .form-content {
    padding: 30px 25px;
  }
}
@media (max-width: 768px) {
  .container {
    margin: 20px auto;
  }
  .form-stepper {
    flex-direction: column;
  }
  .step {
    text-align: left;
    padding-left: 20px;
  }
  .form-content {
    padding: 25px 20px;
  }
  .form-actions {
    flex-direction: column;
    gap: 15px;
  }
  .btn {
    width: 100%;
  }
  .payment-details {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
}
/* Form step transitions */
.form-step {
  display: none;
  animation: fadeIn 0.5s ease;
}
.form-step.active {
  display: block;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Loading spinner */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  margin-right: 10px;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.declaration-inline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.4;
  cursor: pointer;
}

.declaration-inline input[type="checkbox"] {
  margin-top: 4px;
  flex: 0 0 auto;
}
