
  form#gold_form {
    width: 100%;
    max-width: 800px;
    /* padding: 20px; */
    margin: 0 auto;
  }

  form#gold_form h4 {
    text-align: center;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 15px;
  }

  form#gold_form p {
    text-align: center;
    color: #6c757d;
    margin-bottom: 30px;
    font-size: 1rem;
  }

  form#gold_form label{
    font-weight: 500;
  }

  .form-control {
    border-radius: 12px;
    padding: 16px 18px;
    font-size: 1.1rem;
    margin-bottom: 20px;
    border: 1px solid #ced4da;
    background-color: #fff;
    transition: 0.3s;
  }

  .form-control:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13,110,253,0.25);
    background-color: #fff;
  }

  .form-text {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: -15px;
    margin-bottom: 15px;
  }

  .is-invalid {
    border-color: #dc3545 !important;
  }

  .text-danger {
    font-size: 0.85rem;
    color: #dc3545 !important;
    margin-top: -20px;
    padding-bottom: 20px;
  }

  .add-bottom{
     margin-bottom: 10px !important;
  }

  form#gold_form input{
    border: 1px solid #a59e9e;
  }   
  
  form#gold_form input:hover,
  form#gold_form input:focus,
  form#gold_form input:active {
      border: 1px solid #BC9F57 !important;
      outline: none !important;  /* remove default focus outline */
      box-shadow: 0 0 0 1px #BC9F57; /* optional, adds highlight */
  }



 .gold-certificate-layout {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

.gold-inner {
  display: flex;
  gap: 60px;
  align-items: flex-start;
}

.gold-form-col {
  flex: 1.2;
}

.gold-preview-col {
  flex: 1;
}

@media (max-width: 991px) {
  .gold-inner {
    flex-direction: column;
  }
}


/* Certificate Preview Styles */
.generating-text{
  color: #8c8a83;
}
.certificate-preview {
  border: 2px dashed #ced4da;
  border-radius: 16px;
  padding: 24px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  transition: all 0.3s ease;
  flex-direction: column;
  text-align: center;
}

.certificate-preview.empty {
  color: #adb5bd;
  font-size: 1rem;
}

.certificate-preview img {
  max-width: 100%;
  border-radius: 12px;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.certificate-preview img.visible {
  opacity: 1;
}

/* Spinner animation */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #BC9F57;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Skeleton Loader */
.skeleton {
  width: 100%;
  height: 250px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
  margin-bottom: 10px;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Style for Generate and Download buttons */
.btn-gold, #downloadCertificate {
  background-color: #BC9F57;
  color: #fff;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 10px 24px;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  text-align: center;
  display: inline-block;
  cursor: pointer;
}

.btn-gold:hover, #downloadCertificate:hover {
  background-color: #A88544; /* Slightly darker on hover */
  text-decoration: none;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(188,159,87,0.35);
}

#downloadCertificate {
  margin-top: 15px;
  display: none;
  text-align: center;

}


.gold-form-header {
  text-align: center;
  margin-bottom: 30px;
}

.gold-logo {
  max-width: 140px;
  width: 13%;
  height: auto;
  margin-bottom: 12px;
}

.gold-title {
  font-size: 1.4rem !important;
  font-weight: 500;
  letter-spacing: 1px;
  color: #212529;
}
.gold-text{
  color: #BC9F57;
  font-weight: bold;
}


/* Error Panel */

.gold-error-panel {
  position: relative;  
  /* border: 1px solid #dc3545; */
  background: #f8d7da;
  color: #842029;
  border-radius: 12px;
  padding: 14px 16px 14px 16px;
  margin: 15px 0 20px;
  font-size: 0.95rem;
  box-sizing: border-box;
  overflow: hidden; 
  display: none;
}

.gold-error-panel strong {
  display: block;
  margin-bottom: 5px;
}

/* Close button */
.gold-error-close {
  position: absolute;
  top: 20%;        
  right: 12px;
  transform: translateY(-50%);
  background: transparent !important;
  border: none !important;
  font-size: 1.4rem;
  font-weight: bold;
  color: #842029 !important;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.gold-error-close:hover {
  color: #661b21ff;
  border: none !important;
  background: transparent !important;
}

.pd-photo{
  display: none;
}

@media (max-width: 768px) {

  .gold-certificate-layout {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  .gold-inner {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .gold-form-col,
  .gold-preview-col {
    width: 100% !important;
    max-width: 100% !important;
  }


  .gold-logo {
    width: auto;
    max-width: 39% !important;
  }

  .gold-title {
    font-size: 1.2rem !important;
    line-height: 1.4;
  }


  .form-control {
    font-size: 1rem;
    padding: 14px 16px;
  }

  .certificate-preview {
    min-height: 260px;
    padding: 16px;
  }


  .skeleton {
    height: 180px;
  }


  .btn,
  .btn-gold,
  #downloadCertificate {
    width: 100%;
    display: block;
    font-size: 1rem;
    padding: 12px 16px;
  }

}


