/* Mobile Support */

@media only screen and (max-width: 768px) {
  .title-container {
    padding: 5px;
    text-align: center;
    width: 100%; 
    max-width: 1200px; 
    margin: auto; 
  }

  .form-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .form-group > label {
    flex: 0 0 100%;
    margin-bottom: 10px;
  }

  .form-check {
    margin-right: 20px;
  }

  .form-check-input {
    width: 1.5em;
    height: 1.5em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
  }

  .form-check-label {
    padding-left: 0.5em;
    font-size: 1.1em;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
  }

  button {
    padding: 12px 18px; 
    font-size: 1em; 
  }

  .dropzone .dz-message span {
    display: none; 
  } 
}

/* The Basics */

body {
  background-image: url('/img/background-lowres.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  transition: background-image 0.5s;
}

h1 {
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px #000000;
}

.lead {
  color: white;
  text-align: center;
  text-shadow: 2px 2px 8px #000000;
}

.p1 {
  text-align: center;
  margin: auto;
  padding-bottom: 10px;
  color: black;
}

.hiddenField {
  display: none;
}

.col-lg-10 {
  background: rgba(0, 0, 0, 0.5);
  -moz-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.5);
  -webkit-box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.5);
}

.section { 
  display: none; 
}

.section.active { 
  display: block; 
}

.alert.alert-danger {
  text-align: center;
  margin-top: 15px;
}

.is-invalid {
  border-color: #dc3545;
  padding-right: calc(1.5em + .75rem);
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
}

.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.wizard-buttons { 
  text-align: center; margin-top: 20px; 
}

.note {
  color: #000000;
  font-size: 0.8em;
  text-align: left;
}

.asterisk {
  color: red;
}

form #website {
  display: none;
}

.character-counter {
  float: right;
  color: grey;
  font-size: 0.8em;
  text-align: right;
}

.button-container {
  width: 100%;
  position: relative;
  display: flex;
  display: inline-block;
  justify-content: center;
}

/* Dropzone Styling and Positioning */

#dzUpload {
  position: relative;
}

#dropzoneArea .dropzone.has-advanced-upload {
  border: 2px dashed #5b8cc7;
  border-radius: 12px;
  padding: 5px;
  text-align: center;
  background: #87e3ff;
  outline: 2px dashed black;
  outline-offset: -10px;
  transition: outline-offset 0.3s, background-color 0.3s;
}

#dropzoneArea .dropzone.has-advanced-upload.dz-drag-hover {
  outline-offset: -15px;
  background-color: #d6f5ff;
  transition: outline-offset 0.3s, background-color 0.3s;
}

#dropzoneArea .dropzone.no-advanced-upload {
  border: 2px dashed #5b8cc7;
  border-radius: 12px;
  padding: 5px;
  text-align: center;
  background: #87e3ff;
  outline: 2px dashed black;
  outline-offset: -10px;
}

.dropzone .dz-message strong {
  font-weight: bold;
  color: #000; 
  transition: color;
}

.dropzone .dz-message strong:hover {
  color: #dffaff; 
  cursor: pointer; 
}

/* File Upload Box Styles */

.dz-preview {
  position: relative;
}

.file-upload input[type='file'] {
  display: none;
}

.file-upload.btn.btn-primary.btn-block.rounded-pill.shadow {
  transition: transform 100ms;
}

.file-upload.btn.btn-primary.btn-block.rounded-pill.shadow:not(:disabled):hover {
 background: #00c3ffea;
 transform: translateY(1px);
 cursor: pointer;
}

.dropzone .icon {
  display: block;
  margin: auto;
}

.file-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  display: inline-block;
  vertical-align: middle;
}

.file-icon svg {
  width: 100%;
  height: 100%;
}

.file-icon-pdf svg {
  color: #ef4444;
}

.file-icon-word svg {
  color: #2563eb;
}

.file-icon-pages svg {
  color: #7c3aed;
}

.file-icon-default svg {
  color: #6b7280;
}

.progress-container {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  z-index: 498; 
}

.progress-bar {
  width: 100%;
  height: 4px;
  background-color: #f3f4f6;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background-color: #3b82f6;
  transition: width 0.3s ease-out;
}

.progress-text {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 4px;
}

.dz-success-mark {
  position: relative;
  z-index: 500;
}

.dz-preview .file-remove {
  position: absolute;
  bottom: 10px; 
  left: 50%; 
  transform: translateX(-50%);
  z-index: 499;
}

.file-remove {
  font-size: 0.8rem;
  line-height: 1;
  border-radius: .2rem;
  color: #000000;
  background-color: #e9e9e9;
  border-color: #dc3545;
  padding: 0.1rem 0.8rem;
  white-space: nowrap;
}

.file-remove.btn.btn-danger.btn-sm:hover {
  cursor: pointer;
}

.file-remove .spinner {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-left-color: #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

/* Enhanced invalid field styling */
.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-check-input.is-invalid {
    border-color: #dc3545;
}

.form-check-input.is-invalid ~ .form-check-label {
    color: #dc3545;
}

/* Character counter styling */
.character-counter {
    font-size: 0.75rem;
    color: #6c757d;
    transition: color 0.3s ease;
}

/* Error alert styling improvements */
.alert-danger {
    border-left: 4px solid #dc3545;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    animation: fadeInAlert 0.5s ease-out;
}

@keyframes fadeInAlert {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Focus styling for better accessibility */
.form-control:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Loading state for submit button */
.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* Success styling for valid fields */
.form-control.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='m2.3 6.73.4.4L7.57.85l-.4-.4L3.18 4.04 1.41 2.27l-.4.4 1.29 1.29z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Responsive improvements for error messages */
@media (max-width: 768px) {
    .field-error-message {
        font-size: 0.8em;
    }
    
    .alert-danger {
        font-size: 0.9em;
        padding: 0.75rem;
    }
}

/* Work Experience Button States */
#addWorkExperience {
    transition: all 0.3s ease;
    font-weight: 500;
}

#addWorkExperience:disabled {
    opacity: 0.6;
    cursor: not-allowed !important;
    transform: none !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #fff !important;
}

#addWorkExperience:disabled:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    transform: none !important;
}

/* Active state styling */
#addWorkExperience:not(:disabled) {
    background-color: #17a2b8;
    border-color: #17a2b8;
    color: #fff;
}

#addWorkExperience:not(:disabled):hover {
    background-color: #138496;
    border-color: #117a8b;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Work experience counter styling */
.work-experience-counter {
    font-size: 0.9em;
    color: #6c757d;
    margin-left: 8px;
}

/* Remove button styling improvements */
.remove-work-experience {
    transition: all 0.2s ease;
}

.remove-work-experience:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(220, 53, 69, 0.2);
}