:root {
    --orange: #FDB71A;
    --blue: #003366;
    --white: #FFFFFF;
    --gray: #f8f9fa;
    --border: #e0e0e0;
    --light-blue: #e6f2ff;
}

* {
    box-sizing: border-box;
}

body {
  background: linear-gradient(135deg, var(--blue) 0%, #004080 100%);
  min-height: 100vh;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  padding-bottom: 50px;
}

.main-container {
  background: var(--white);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  margin: 120px auto 40px auto;
  max-width: 1100px;
  overflow: hidden;
}

.top-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 30px;
  background-color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border-bottom: 3px solid var(--orange);
}

.top-bar a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
}

.top-bar a:hover {
  color: var(--orange);
  transform: translateX(-5px);
}

.logo {
  width: 70px;
  height: 50px;
}

.header {
  background: linear-gradient(135deg, var(--blue) 0%, #004d99 100%);
  color: var(--white);
  padding: 50px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(253, 183, 26, 0.1) 0%, transparent 70%);
  animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.header h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.header p {
  margin-top: 15px;
  font-size: 1.1rem;
  opacity: 0.95;
  position: relative;
  z-index: 1;
}

.form-section {
  padding: 50px 60px;
  background: var(--white);
}

.section-title {
  color: var(--blue);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

.form-group {
  margin-bottom: 28px;
  position: relative;
}

.form-label {
  font-weight: 600;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
  font-size: 15px;
}

.form-label b {
  font-weight: 700;
}

.form-control, .form-select {
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: var(--white);
  width: 100%;
}

.form-control:focus, .form-select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(253, 183, 26, 0.15);
  outline: none;
  background: var(--light-blue);
}

.form-control::placeholder {
  color: #999;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.file-upload-wrapper {
  position: relative;
  background: var(--gray);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.file-upload-wrapper:hover {
  border-color: var(--orange);
  background: var(--light-blue);
}

.file-upload-wrapper input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.file-upload-label {
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.file-upload-icon {
  font-size: 2rem;
  color: var(--orange);
  margin-bottom: 10px;
}

.clear-icon {
  color: #dc3545;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  display: inline-block;
  transition: all 0.3s ease;
}

.clear-icon:hover {
  color: #a02622;
  transform: scale(1.1);
}

.error-message {
  color: #dc3545;
  font-size: 13px;
  margin-top: 5px;
  display: block;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, #e5a615 100%);
  border: none;
  border-radius: 50px;
  padding: 16px 50px;
  font-size: 17px;
  font-weight: 700;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  box-shadow: 0 4px 15px rgba(253, 183, 26, 0.4);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #e5a615 0%, var(--orange) 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(253, 183, 26, 0.5);
}

.btn-secondary {
  background: var(--white);
  border: 2px solid var(--blue);
  border-radius: 50px;
  padding: 16px 50px;
  font-size: 17px;
  font-weight: 600;
  transition: all 0.3s ease;
  color: var(--blue);
}

.btn-secondary:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.3);
}

.button-group {
  text-align: center;
  padding-top: 40px;
  margin-top: 40px;
  border-top: 2px solid var(--border);
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.required-star {
  color: #dc3545;
  font-weight: bold;
}

.fade-in {
  animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(30px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

.row {
  margin-left: -12px;
  margin-right: -12px;
}

.col-md-6, .col-md-12 {
  padding-left: 12px;
  padding-right: 12px;
}

.modal-header {
  background: var(--blue);
  color: var(--white);
  border-bottom: 3px solid var(--orange);
}

.modal-header.success {
  background: #28a745;
}

.modal-header.error {
  background: #dc3545;
}

@media (max-width: 768px) {
  .main-container {
    margin: 100px 15px 30px 15px;
    border-radius: 16px;
  }
  
  .form-section {
    padding: 30px 25px;
  }
  
  .header {
    padding: 35px 25px;
  }
  
  .header h1 {
    font-size: 1.8rem;
  }
  
  .button-group {
    flex-direction: column;
  }
  
  .btn-primary, .btn-secondary {
    width: 100%;
  }
}