:root{
--secondary-color: #343552;
}

.dark-theme{
--secondary-color: #ffffff;
}

.why-submit-cv-title {
  margin-top: 32px;
  color: var(--secondary-color);
  font-size: 42px;
  font-weight: 500;
  line-height: 48px;
}
.why-submit-cv-text {
  margin-top: 24px;
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
}
.custom-card {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.why-submit-cv-img {
  width: 120px;
  height: 120px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  transition: all 0.3s ease;
}

.power-up {
  background-image: url("./image/icon/powerUp.svg");
}

.connect {
  background-image: url("./image/icon/connect.svg");
}

.level-up {
  background-image: url("./image/icon/levelUp.svg");
}

.custom-card:hover .power-up {
  background-image: url("./image/icon/power-hover.svg");
}

.custom-card:hover .connect {
  background-image: url("./image/icon/connect-hover.svg");
}

.custom-card:hover .level-up {
  background-image: url("./image/icon/level-hover.svg");
}
.stacks {
  width: 96px;
  height: 96px;
}

@media (max-width: 577.98px) {
  /* Form text size 14px for mobile */
  .form .input-field,
  .form .input-field::placeholder,
  .form .tech-placeholder,
  .form .tech-option,
  .form .submit-btn {
    font-size: 14px;
  }
  .banner-sub-text {
    font-size: 14px;
  }
  .why-submit-cv-title {
    margin-top: 12px;
    font-size: 24px;
    line-height: 32px;
  }
  .why-submit-cv-text {
    margin-top: 12px;
    font-size: 14px;
    line-height: 20px;
  }
  .why-submit-cv-img {
    width: 60px;
    height: 60px;
  }
  .stacks {
    width: 48px;
    height: 48px;
  }
}

.hero-section {
  overflow: hidden;
}

.cloud-left-1 {
  bottom: 0;
  right: -5%;
  z-index: 10;
  transition: transform 0.8s ease-in-out;
}
.cloud-left-2 {
  bottom: 0;
  right: -3%;
  z-index: 11;
  transition: transform 0.8s ease-in-out;
}
.cloud-left-3 {
  bottom: 0;
  right: -2%;
  z-index: 12;
  transition: transform 0.8s ease-in-out;
}

.cloud-right-1 {
  bottom: 0;
  left: -5%;
  z-index: 10;
  transition: transform 0.8s ease-in-out;
}
.cloud-right-2 {
  bottom: 0;
  left: -3%;
  z-index: 11;
  transition: transform 0.8s ease-in-out;
}
.cloud-right-3 {
  bottom: 0;
  left: -2%;
  z-index: 12;
  transition: transform 0.8s ease-in-out;
}

.hero-section:hover .cloud-left-1 {
  transform: translateX(215px);
}
.hero-section:hover .cloud-left-2 {
  transform: translateX(120px);
}
.hero-section:hover .cloud-left-3 {
  transform: translateX(100px);
}
.hero-section:hover .cloud-right-1 {
  transform: translateX(-215px);
}
.hero-section:hover .cloud-right-2 {
  transform: translateX(-120px);
}
.hero-section:hover .cloud-right-3 {
  transform: translateX(-100px);
}

.employee-img {
  bottom: -100%;
  right: 190px;
  z-index: 15;
  opacity: 0;
  transition: bottom 1s ease-in-out, opacity 0.8s ease-in-out;
}

.hero-section:hover .employee-img {
  bottom: 0;
  opacity: 1;
}

@media screen and (min-width: 1025px) and (max-width: 1144px) {
  .hero-section:hover .cloud-left-1 {
    transform: translateX(440px);
  }
  .hero-section:hover .cloud-left-2 {
    transform: translateX(280px);
  }
  .hero-section:hover .cloud-left-3 {
    transform: translateX(250px);
  }
  .hero-section:hover .cloud-right-1 {
    transform: translateX(-440px);
  }
  .hero-section:hover .cloud-right-2 {
    transform: translateX(-280px);
  }
  .hero-section:hover .cloud-right-3 {
    transform: translateX(-250px);
  }
  .employee-img {
    right: 20px;
  }
}

@media screen and (min-width: 1145px) and (max-width: 1224px) {
  .hero-section:hover .cloud-left-1 {
    transform: translateX(400px);
  }
  .hero-section:hover .cloud-left-2 {
    transform: translateX(240px);
  }
  .hero-section:hover .cloud-left-3 {
    transform: translateX(210px);
  }
  .hero-section:hover .cloud-right-1 {
    transform: translateX(-400px);
  }
  .hero-section:hover .cloud-right-2 {
    transform: translateX(-240px);
  }
  .hero-section:hover .cloud-right-3 {
    transform: translateX(-210px);
  }
  .employee-img {
    right: 80px;
  }
}

@media screen and (min-width: 1225px) and (max-width: 1324px) {
  .hero-section:hover .cloud-left-1 {
    transform: translateX(400px);
  }
  .hero-section:hover .cloud-left-2 {
    transform: translateX(300px);
  }
  .hero-section:hover .cloud-left-3 {
    transform: translateX(270px);
  }
  .hero-section:hover .cloud-right-1 {
    transform: translateX(-400px);
  }
  .hero-section:hover .cloud-right-2 {
    transform: translateX(-300px);
  }
  .hero-section:hover .cloud-right-3 {
    transform: translateX(-270px);
  }
  .employee-img {
    right: 40px;
  }
}

@media screen and (min-width: 1325px) and (max-width: 1424px) {
  .hero-section:hover .cloud-left-1 {
    transform: translateX(460px);
  }
  .hero-section:hover .cloud-left-2 {
    transform: translateX(360px);
  }
  .hero-section:hover .cloud-left-3 {
    transform: translateX(330px);
  }
  .hero-section:hover .cloud-right-1 {
    transform: translateX(-460px);
  }
  .hero-section:hover .cloud-right-2 {
    transform: translateX(-360px);
  }
  .hero-section:hover .cloud-right-3 {
    transform: translateX(-330px);
  }
  .employee-img {
    right: 0px;
  }
}

@media screen and (min-width: 1425px) and (max-width: 1515px) {
  .hero-section:hover .cloud-left-1 {
    transform: translateX(520px);
  }
  .hero-section:hover .cloud-left-2 {
    transform: translateX(420px);
  }
  .hero-section:hover .cloud-left-3 {
    transform: translateX(390px);
  }
  .hero-section:hover .cloud-right-1 {
    transform: translateX(-520px);
  }
  .hero-section:hover .cloud-right-2 {
    transform: translateX(-420px);
  }
  .hero-section:hover .cloud-right-3 {
    transform: translateX(-390px);
  }
  .employee-img {
    right: -40px;
  }
}

.tech-dropdown-wrapper {
  position: relative;
}

.tech-dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.tech-placeholder {
  color: #7885b9;
}

.dropdown-arrow {
  width: 12px;
  height: 12px;
  background-image: url('./image/down-arrow.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  margin-right: 5px;
}

.tech-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.tech-options {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--input-field-bg);
  border: 1px solid #8ba2d0;
  border-radius: 16px;
  margin-top: 8px;
  padding: 12px;
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
}

.tech-options.show {
  display: block;
}

.tech-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  color: #7885b9;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.tech-option:hover {
  background: rgba(139, 162, 208, 0.2);
}

.tech-option input[type="checkbox"] {
  margin-right: 10px;
  accent-color: #343552;
}

.cv-upload-area {
  border: 2px dashed #8ba2d0;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.cv-upload-area:hover {
  border-color: var(--input-field-hover-border);
  background: rgba(139, 162, 208, 0.1);
}

.cv-upload-area.dragover {
  border-color: #343552;
  background: rgba(52, 53, 82, 0.1);
}

.cv-upload-area p {
  color: #7885b9;
  font-size: 16px;
}

.upload-link {
  color: #7885B9;
  font-weight: 600;
  text-decoration: underline;
}

.dark-theme .upload-link {
  color: #8ba2d0;
}

.cv-upload-area.uploading {
  border-style: dashed;
  pointer-events: none;
}

.cv-uploading-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.upload-spinner-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
}

.upload-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid #e0e0e0;
  border-top-color: #343552;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.upload-progress-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 11px;
  font-weight: 600;
  color: #7885b9;
}

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

.uploading-text {
  color: #7885b9;
  font-size: 14px;
}

.cv-upload-area.success {
  border: 1px solid #8ba2d0;
  border-style: solid;
  padding: 12px 16px;
}

.cv-file-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cv-file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-file-icon {
  width: 20px;
  height: 20px;
  color: #7885b9;
}

.cv-file-name {
  color: #7885b9;
  font-size: 14px;
}

.cv-delete-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #7885b9;
  transition: color 0.2s ease;
}

.cv-delete-btn:hover {
  color: #FF2B28;
}

.cv-delete-btn svg {
  width: 18px;
  height: 18px;
}

.cv-upload-area.error {
  border: 1px solid #FF2B28;
  border-style: solid;
  padding: 12px 16px;
}

.cv-error-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.cv-error-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cv-error-icon {
  width: 20px;
  height: 20px;
  color: #FF2B28;
}

.cv-error-name {
  color: #FF2B28;
  font-size: 14px;
}

.cv-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  color: #FF2B28;
  font-size: 18px;
  line-height: 1;
}

.cv-error-message {
  color: #FF2B28;
  font-size: 13px;
  margin-top: 8px;
  text-align: left;
}

.dark-theme .upload-spinner {
  border-color: #444;
  border-top-color: #8ba2d0;
}

.dark-theme .uploading-text,
.dark-theme .cv-file-name,
.dark-theme .cv-file-icon,
.dark-theme .cv-delete-btn {
  color: #8ba2d0;
}

.dark-theme .tech-placeholder {
  color: #8ba2d0;
}

.dark-theme .dropdown-arrow {
  background-image: url('./image/down-arrow-dark.svg');
}

.dark-theme .tech-option {
  color: #8ba2d0;
}

.dark-theme .cv-upload-area p {
  color: #8ba2d0;
}

@media (max-width: 577.98px) {
  /* Form text size 14px for mobile */
  .form .input-field,
  .form .input-field::placeholder,
  .form .tech-placeholder,
  .form .tech-option,
  .form .submit-btn {
    font-size: 14px;
  }
  .cv-upload-area {
    padding: 24px 16px;
  }
  .cv-upload-area p {
    font-size: 14px;
  }
}

.field-error {
  display: none;
  color: #FF2B28;
  font-family: Gilroy, sans-serif;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin-top: 6px;
}

.input-field.error,
.tech-dropdown.error,
.cv-upload-area.error {
  border-color: #FF2B28 !important;
}

@media screen and (max-width: 1024px) {
  .cloud-left-1,
  .cloud-left-2,
  .cloud-left-3,
  .cloud-right-1,
  .cloud-right-2,
  .cloud-right-3,
  .employee-img {
    display: none;
  }
}
