/* CV Submission Form Styles */
.cv-submission-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  max-width: 1060px;
  margin: 60px auto;
  padding: 30px;
  border-radius: 20px;
  background: url("../images/about/hero-bg.png"), #1e1e1e;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.cv-submission-form::before {
  content: "";
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(30, 30, 30, 0.92);
  backdrop-filter: blur(5px);
  z-index: 0;
  border-radius: 20px;
}

.cv-submission-form > * {
  position: relative;
  z-index: 1;
}

.cv-form__header {
  margin-bottom: 20px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cv-form__title {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: #ffffff;
  margin: 0 0 10px 0;
}

.cv-form__subtitle {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.cv-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cv-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.cv-form__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-form__label {
  font-family: "Be Vietnam Pro", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.cv-form__input,
.cv-form__textarea {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #242427;
  color: #ffffff;
  transition: all 0.2s ease;
}

.cv-form__input::placeholder,
.cv-form__textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.cv-form__input:focus,
.cv-form__textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.cv-form__textarea {
  resize: vertical;
  min-height: 100px;
}

.cv-form__file-upload {
  position: relative;
}

.cv-form__file-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.cv-form__file-label {
  display: flex;
  padding: 40px 20px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  align-self: stretch;
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: #242427;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.cv-form__file-label svg {
  color: #ffffff;
}

.cv-form__file-text {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
}

.cv-form__file-format {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

.cv-form__file-info {
  margin-top: 8px;
  text-align: center;
}

.cv-form__file-info small {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.cv-form__file-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(234, 244, 255, 0.1);
  border: 1px solid rgba(179, 217, 255, 0.3);
  border-radius: 8px;
  gap: 12px;
}

.cv-form__file-name {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  flex: 1;
  word-break: break-all;
}

.cv-form__file-remove {
  background: none;
  border: none;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.cv-form__file-remove:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.cv-form__actions {
  margin-top: 8px;
}

.cv-form__submit {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 24px;
  background: #ffffff;
  color: #1e1e1e;
  border: none;
  border-radius: 12px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 56px;
}

.cv-form__submit:disabled {
  background: rgba(255, 255, 255, 0.3);
  cursor: not-allowed;
  transform: none;
}

.cv-form__submit:disabled:hover {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.cv-form__spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cv-form__spinner svg {
  width: 20px;
  height: 20px;
  color: currentColor;
}

.cv-form__message {
  padding: 12px 16px;
  border-radius: 8px;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.cv-form__message--success {
  background: rgba(39, 174, 96, 0.1);
  color: #27ae60;
  border: 1px solid rgba(39, 174, 96, 0.3);
}

.cv-form__message--error {
  background: rgba(235, 87, 87, 0.1);
  color: #eb5757;
  border: 1px solid rgba(235, 87, 87, 0.3);
}

/* Error styles */
.cv-form__error {
  display: block;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 12px;
  color: #eb5757;
  margin-top: 4px;
}

.cv-form__input--error {
  border-color: rgba(235, 87, 87, 0.5);
  background: rgba(235, 87, 87, 0.05);
}

/* Footer */
.cv-form__footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: start;
}

.cv-form__footer p {
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.cv-form__footer a {
  color: #ffffff;
  text-decoration: underline;
}

.cv-form__footer a:hover {
  opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 768px) {
  .cv-submission-form {
    padding: 30px 16px;
  }

  .cv-form__title {
    font-size: 24px;
    line-height: 32px;
  }

  .cv-form__row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .cv-form__file-label {
    padding: 24px 16px;
  }

  .cv-form__file-text {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .cv-submission-form {
    border-radius: 0px;
  }

  .cv-form__title {
    font-size: 20px;
    line-height: 28px;
  }

  .cv-form {
    gap: 20px;
  }

  .cv-form__file-label {
    padding: 20px 12px;
    gap: 8px;
  }

  .cv-form__submit {
    font-size: 14px;
    padding: 12px 20px;
    min-height: 48px;
  }
}

/* Success Modal */
.cv-success-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cv-success-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.cv-success-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  padding: 40px;
  max-width: 640px;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.cv-success-modal__close {
  display: flex;
  width: 40px;
  height: 40px;
  justify-content: center;
  align-items: center;
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 18000px;
  border: 1.6px solid rgba(167, 167, 167, 0.3);
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cv-success-modal__icon {
  margin-bottom: 10px;
}

.cv-success-modal__title {
  color: #070a1d;
  text-align: center;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
  margin: 0;
}

.cv-success-modal__description {
  color: #070a1d;
  text-align: center;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin: 0;
}

.cv-success-modal__details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  border-radius: 16px;
  border: 1px solid #e3e3e3;
  background: #ffffff;
}

.cv-success-modal__detail-item {
  display: flex;
  padding: 16px;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
}

.cv-success-modal__detail-item:first-child {
  border-bottom: 1px dashed #e3e3e3;
}

.cv-success-modal__detail-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cv-success-modal__detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cv-success-modal__detail-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  flex: 1;
}

.cv-success-modal__detail-label {
  color: #070a1d;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.cv-success-modal__detail-value {
  color: #070a1d;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

.cv-success-modal__button {
  display: flex;
  height: 54px;
  padding: 10px 30px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  border-radius: 16px;
  background: #070a1d;
  color: #ffffff;
  font-family: "Be Vietnam Pro", sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cv-success-modal__button:hover {
  background: rgba(7, 10, 29, 0.9);
}

/* Modal Responsive */
@media (max-width: 480px) {
  .cv-success-modal {
    padding: 16px;
  }

  .cv-success-modal__content {
    padding: 30px 8px;
    gap: 16px;
  }

  .cv-success-modal__title {
    font-size: 20px;
  }

  .cv-success-modal__description {
    font-size: 14px;
    line-height: 20px;
  }

  .cv-success-modal__details {
    gap: 16px;
  }

  .cv-success-modal__detail-item {
    padding: 12px;
  }
}
