@import url("https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Lobster&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Cardo:ital,wght@0,400;0,700;1,400&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: #f6f7f9;
  color: #212529;
  line-height: 1.6;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  background-color: #fff;
  width: 100%;

  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 24px;
}

.help-btn {
  background-color: transparent;
  border: 1px solid #6c757d;
  color: #6c757d;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.back-btn:hover {
  color: #212529;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 0.3rem;
  font-family: "DM Sans";
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: #131836;
}
#page-1 {
  padding-top: 2.5rem;
}
#page-2,
#page-3,
#page-5 {
  margin-top: 3rem;
}
.step-indicator {
  color: #ef332e;
  font-family: "DM Sans";
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.page-title {
  color: #131836;
  text-align: center;
  font-family: "Cardo", serif;
  font-size: 3.2rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.subtitle {
  color: #131836;
  font-family: "Cardo";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 2rem;
  text-align: center;
}
.subtitles {
  padding: 0.5rem 0 0 0;
  color: #131836;
  font-family: "Cardo";
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: 2rem;
}

.vephla-highlight {
  color: #983b39;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: "Cardo";
  font-size: 3.2rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.instructions {
  margin: 0.7rem auto 2rem;
  color: #585d69;
  text-align: center;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  width: 517px;
}

.instruction {
  color: #585d69;
  padding-block: 0.2rem;
  font-family: "DM Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #131836;
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.form-control {
  width: 100%;
  padding: 0.4rem 0.3rem;
  border: none;
  background-color: transparent;
  border-bottom: 2px solid #585d69;
  outline: none;
  font-size: 1rem;
  transition: border-color 0.15s ease-in-out;
}
.form-control:focus {
  border-bottom: 2px solid #ced4da;
}

.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
  gap: 10px;
}

.btn-primary {
  background-color: #131934;
  color: white;
  padding-block: 1.2rem;
  color: #fff;
  font-family: "DM Sans";
  font-size: 16px;
}

.btn-primary:hover {
  background-color: #0d1224;
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #5a6268;
}

.steps {
  display: flex;
  margin-bottom: 2rem;
  gap: 10px;
}

.step {
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  color: #6c757d;
}

.step.active {
  color: #dc3545;
}

.error {
  border-bottom: 2px solid red;
}

.step:not(:last-child)::after {
  content: "";
  width: 20px;
  height: 1px;
  background-color: #6c757d;
  margin: 0 5px;
}

.form-error {
  color: #ef332e;
  font-family: "DM Sans";
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5rem;
}

.detail-row {
  display: flex;
  justify-content: space-between !important;
  padding: 0.55rem 0;
}

.detail-label {
  color: #585d69;
  font-family: "DM Sans";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
}

.detail-value {
  color: #131836;
  font-family: "DM Sans";
  font-size: 1rem;
  font-style: normal;
  font-weight: 500;
}

.loading-screen {
  text-align: center;
  padding: 3rem 0;
}

.loading-image {
  width: 19.06781rem;
  height: 15.625rem;
  flex-shrink: 0;
  aspect-ratio: 305.08/250;
}

.loading-title {
  color: #131836;
  text-align: center;
  font-family: Cardo;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.loading-text {
  color: #585d69;
  text-align: center;
  font-family: "DM Sans";
  font-size: 1rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.75rem; /* 175% */
}

.loading-progress {
  height: 0.1875rem;
  background-color: #e9ecef;
  margin: 2rem auto;
  position: relative;
  width: 80%;
}

.loading-progress::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0;
  background-color: #dc3545;
  animation: progressAnimation 7s ease-in-out forwards;
}

@keyframes progressAnimation {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.success-screen {
  text-align: center;
  padding: 2rem 0;
}

.success-title {
  color: #131836;
  font-family: Cardo;
  font-size: 1.5rem;
  font-style: normal;
  font-weight: 700;
  text-align: center;
}

.success-text {
  color: #585d69;
  font-family: "DM Sans";
  font-size: 0.875rem;
  font-style: normal;
  font-weight: 400;
  text-align: center;
}

.certificate-preview {
  width: 26.625rem;
  height: 18.90625rem;
  margin: 2rem auto;
  position: relative;
}

.certificate-image {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid #28a745;
}

.verified-badge {
  position: absolute;
  bottom: -15px;
  right: -15px;

  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-details {
  display: flex;
  width: 31.3125rem;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 auto;
  border-top: 2px solid #d9d9d9;
  border-bottom: 2px solid #d9d9d9;
}

.action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 2rem;
}

.action-btn {
  display: flex;
  padding: 0.5rem 0.875rem;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  color: #131836;
  font-family: "DM Sans";
  font-size: 0.875rem;
  border-radius: 6.25rem;
  border: 1px solid #131836;
  background: #ebeeff;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.action-btn:hover {
  background-color: transparent;
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.5rem;
}

.secure-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c757d;
  font-size: 0.8rem;
  margin-top: 5.5rem;
  gap: 8px;
}

.progress-steps {
  display: flex;
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.progress-step {
  color: #585d69;
  text-align: center;
  font-family: "DM Sans";
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 28px;
  padding-top: 0.5rem;
}

.progress-step svg {
  margin-right: 5px;
}

/* Dropdown Styling */
select.form-control {
  display: block;
  width: 100%;
  padding: 8px 5px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: #131836;
  background-color: #fafbff;
  background-clip: padding-box;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23343a40' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 14px;
}

/* Placeholder styling (first option) */
select.form-control option:first-child {
  color: #6c757d;
  font-style: italic;
}

/* Tablets and smaller desktops */
@media (max-width: 1024px) {
  .container {
    max-width: 90%;
  }

  .instructions {
    width: 90%;
  }

  .certificate-details {
    width: 90%;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .page-title {
    font-size: 2.5rem;
  }

  .vephla-highlight {
    font-size: 2.5rem;
  }

  .header {
    padding: 1rem 1.5rem;
  }

  .certificate-preview {
    width: 90%;
    height: auto;
  }

  .action-buttons {
    flex-wrap: wrap;
  }

  .action-btn {
    margin-bottom: 10px;
  }
}

/* Mobile phones */
@media (max-width: 576px) {
  .page-title {
    font-size: 2rem;
  }

  .vephla-highlight {
    font-size: 2rem;
  }

  .subtitle,
  .subtitles {
    font-size: 1.2rem;
  }

  .instructions {
    font-size: 14px;
    line-height: 24px;
  }

  .progress-step {
    font-size: 0.6rem;
  }
  .progress-step svg {
    width: 0.6rem;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .action-btn {
    width: 100%;
  }

  .detail-value {
    font-size: 0.8rem;
    margin-left: 10px;
  }
  .detail-label {
    font-size: 0.8rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 430px) {
  .progress-steps {
    display: flex;
    flex-wrap: wrap;
  }
  .progress-step {
    font-size: 0.8rem;
  }
  .progress-step svg {
    width: 0.8rem;
  }
}

/* Very small screens */
@media (max-width: 360px) {
  .header {
    padding: 0.8rem;
  }

  .page-title {
    font-size: 1.8rem;
  }

  .vephla-highlight {
    font-size: 1.8rem;
  }

  .btn {
    padding: 0.7rem 1rem;
  }
}
