/* Black and Golden Yellow Theme for Registration Form */

body {
  background: #ffffff;
  min-height: 100vh;
  /*padding: 2rem 0;*/
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.container-fluid {
  /*max-width: 900px;*/
  margin: 0 auto;
}

/* Card Styling */
.card {
  background: linear-gradient(145deg, #1f1f1f 0%, #2a2a2a 100%);
  border: 2px solid #d4af37;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(212, 175, 55, 0.2), 
              0 0 20px rgba(212, 175, 55, 0.1);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  color: #000;
  font-weight: bold;
  font-size: 1.5rem;
  padding: 1.2rem 1.5rem;
  border-bottom: 3px solid #b8941e;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.card-header .btn-secondary {
  background: #000;
  border: 2px solid #d4af37;
  color: #d4af37;
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-header .btn-secondary:hover {
  background: #d4af37;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.card-body {
  padding: 2rem;
  background: #1f1f1f;
}

/* Form Labels */
.form-label {
  color: #d4af37;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Form Controls */
.form-control,
.form-select {
  background: #2a2a2a;
  border: 2px solid #444;
  color: #fff;
  padding: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  background: #333;
  border-color: #d4af37;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.15);
  outline: none;
}

.form-control::placeholder {
  color: #888;
}

.form-control:hover,
.form-select:hover {
  border-color: #d4af37;
}

/* Invalid State */
.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #ff4444;
  background: #2a1a1a;
}

.form-control.is-invalid:focus,
.form-select.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(255, 68, 68, 0.25);
}

/* Error Messages */
.text-danger {
  color: #ff6b6b !important;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  font-weight: 500;
}

/* Select2 Dropdown Customization */
.select2-container--default .select2-selection--single {
  background: #2a2a2a;
  border: 2px solid #444;
  border-radius: 8px;
  height: auto;
  padding: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #fff;
  padding-left: 0.5rem;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 100%;
  right: 8px;
}

.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #d4af37;
}

.select2-dropdown {
  background: #2a2a2a;
  border: 2px solid #d4af37;
  border-radius: 8px;
}

.select2-container--default .select2-results__option {
  color: #fff;
  padding: 0.75rem;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background: #d4af37;
  color: #000;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: #1f1f1f;
  border: 2px solid #444;
  color: #fff;
  padding: 0.5rem;
  border-radius: 6px;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: #d4af37;
  outline: none;
}

/* Submit Button */
.btn-success {
  background: linear-gradient(135deg, #d4af37 0%, #f4d03f 100%);
  border: none;
  color: #000;
  font-weight: bold;
  font-size: 1.1rem;
  padding: 1rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 20px rgba(212, 175, 55, 0.3);
}

.btn-success:hover {
  background: linear-gradient(135deg, #f4d03f 0%, #d4af37 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
  color: #000;
}

.btn-success:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

/* File Input Styling */
input[type="file"].form-control {
  cursor: pointer;
  padding: 0.6rem;
}

input[type="file"].form-control::file-selector-button {
  background: #d4af37;
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  font-weight: 600;
  margin-right: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

input[type="file"].form-control::file-selector-button:hover {
  background: #f4d03f;
  transform: translateY(-2px);
}

/* Row Spacing */
.row.g-3 {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .card-header {
    font-size: 1.2rem;
    padding: 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
  
  .btn-success {
    font-size: 1rem;
    padding: 0.875rem;
  }
}

/* Smooth Scrollbar */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f4d03f;
}

/* Number Input - Remove Spinner */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

/* Focus Glow Effect */
.form-control:focus,
.form-select:focus {
  animation: goldenGlow 1.5s ease-in-out infinite alternate;
}

@keyframes goldenGlow {
  from {
    box-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
  }
  to {
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
  }
}

/* Success/Error Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-popup {
  background: #fff;
  border-radius: 20px;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.7);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal-popup {
  transform: scale(1);
  opacity: 1;
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: -60px auto 1.5rem;
  position: relative;
  animation: bounceIn 0.6s ease-out 0.3s both;
}

.modal-icon.success {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  box-shadow: 0 10px 30px rgba(0, 200, 83, 0.4);
}

.modal-icon.error {
  background: linear-gradient(135deg, #f44336 0%, #ff5252 100%);
  box-shadow: 0 10px 30px rgba(244, 67, 54, 0.4);
}

.modal-icon svg {
  width: 45px;
  height: 45px;
  stroke: #fff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.modal-icon.success svg {
  animation: drawCheck 0.5s ease-out 0.5s both;
}

.modal-icon.error svg {
  animation: drawCross 0.5s ease-out 0.5s both;
}

.modal-popup h2 {
  color: #2c3e50;
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-popup p {
  color: #7f8c8d;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.modal-popup .btn-modal {
  padding: 0.875rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.modal-popup .btn-modal.btn-continue {
  background: linear-gradient(135deg, #00c853 0%, #00e676 100%);
  color: #fff;
}

.modal-popup .btn-modal.btn-continue:hover {
  background: linear-gradient(135deg, #00e676 0%, #00c853 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 200, 83, 0.4);
}

.modal-popup .btn-modal.btn-tryagain {
  background: linear-gradient(135deg, #f44336 0%, #ff5252 100%);
  color: #fff;
}

.modal-popup .btn-modal.btn-tryagain:hover {
  background: linear-gradient(135deg, #ff5252 0%, #f44336 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(244, 67, 54, 0.4);
}

/* Animations */
@keyframes bounceIn {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes drawCheck {
  0% {
    stroke-dasharray: 0, 100;
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dasharray: 100, 100;
    stroke-dashoffset: 0;
  }
}

@keyframes drawCross {
  0% {
    stroke-dasharray: 0, 100;
  }
  100% {
    stroke-dasharray: 100, 100;
  }
}

/* Responsive Modal */
@media (max-width: 480px) {
  .modal-popup {
    padding: 1.5rem;
    max-width: 340px;
  }
  
  .modal-icon {
    width: 70px;
    height: 70px;
    margin: -50px auto 1.5rem;
  }
  
  .modal-icon svg {
    width: 38px;
    height: 38px;
  }
  
  .modal-popup h2 {
    font-size: 1.5rem;
  }
  
  .modal-popup p {
    font-size: 0.9rem;
  }
  
  .modal-popup .btn-modal {
    padding: 0.75rem 2rem;
    font-size: 0.9rem;
  }
}