:root {
  --primary-color: #1329a9;
  --primary-light: #3a4dcc;
  --primary-dark: #0a1a7a;
  --secondary-color: #8d99ae;
  --accent-color: #ff6b35;
  --light-accent: #f7f9ff;
  --dark-accent: #ee5622;
  --success-color: #4caf50;
  --border-radius: 10px;
  --box-shadow: 0 8px 24px rgba(19, 41, 169, 0.12);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --text-color: #2b2d42;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  color: var(--text-color);
  line-height: 1.6;
  position: relative;
  z-index: 0;
}

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1)),
              url(../images/career.jpg) no-repeat center center / cover;
  background-attachment: fixed;
  z-index: -1;
  pointer-events: none;
}


@media (max-width: 768px) {
  #particles-js {
    background-position: center center;
  }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.header-section {
  text-align: center;
  padding: 3rem 0 2rem;
  background: transparent;
  color: #222;
  position: relative;
}

.header-section img {
  height: 72px;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.08));
  transition: 0.3s ease;
  animation: float 4s ease-in-out infinite;
}

.header-section h2 {
  font-weight: 400;
  font-size: 1.6rem;
  letter-spacing: 1px;
  color: white;
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}

.header-section h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: #ccc;
  border-radius: 1px;
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

.new-form-work {
  display: flex;
  justify-content: center;
  padding: 1rem 1rem;
  padding-bottom: 30px ;
}

.form-container {
  background: rgba(255, 255, 255, 0.37);
  border-radius: 16px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(12.3px);
  -webkit-backdrop-filter: blur(12.3px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  width: 100%;
  max-width: 850px;
  padding: 3rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(19, 41, 169, 0.1);
  transform: translateY(0);
  transition: var(--transition);
  box-shadow: 0 12px 32px rgba(19, 41, 169, 0.2);
}

.form-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary-color), var(--primary-light));
}

.form-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.form-header h1 {
  color: white;
  margin-bottom: 0.8rem 12.8px;
  font-weight: 600;
  font-size: 33px;
  position: relative;
  display: inline-block;
}

.form-header h1::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, #8cceff, #2256ee);
  border-radius: 2px;
}

.form-header p {
  color: white;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  margin-top: 20px;
}

.form-group {
  margin-bottom: 2rem;
  position: relative;
}

.floating-label-group {
  position: relative;
}

.floating-label-group .form-input, 
.floating-label-group .form-select, 
.floating-label-group .form-textarea {
  width: 100%;
  padding: 14px 12px 14px 12px;
  font-size: 16px;
  border: 2px solid white;
  color: white;
  border-radius: 4px;
  background: transparent;
  outline: none;
}

.mystyletop{
  top: 20%;
}

.floating-label-group label.form-label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  background: transparent;
  padding: 0 4px;
  color: white;
  font-size: 16px;
  transition: all 0.2s ease;
  pointer-events: none;
}

.floating-label-group input:focus + label,
.floating-label-group input:not(:placeholder-shown) + label,
.floating-label-group select:focus + label,
.floating-label-group select:not([value=""]) + label,
.floating-label-group textarea:focus + label,
.floating-label-group textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 12px;
  color: #555;
  background-color: white;
  border-radius: 3px;
  border: 1px solid #1329a9 !important;
}

input:focus{
  border: 2px solid #1329a9 !important;
  box-shadow: none;
}

.form-label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: white;
  position: relative;
  font-size: 0.95rem;
}

.form-label::after {
  content: "*";
  color: white;
  margin-left: 4px;
  opacity: 0;
  transition: var(--transition);
}

.form-group:focus-within .form-label::after,
.form-group.required .form-label::after {
  opacity: 1;
}

.sub-label {
  display: block;
  font-size: 0.8rem;
  color: white;
  margin-top: 0.4rem;
  font-weight: 400;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 1px solid lightgray;
  border-radius: 1px;
  font-size: 18px;
  transition: var(--transition);
  color: white;
}

.form-select {
  background-color: transparent;
  color: white !important;
  border: 1px solid #aaa;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 1rem;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg fill='white' height='12' viewBox='0 0 24 24' width='12' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  padding-right: 32px;
}

/* Focused style */
.form-select:focus {
  outline: none;
  border-color: #fff !important;
  color: white !important;
  background-color: transparent !important;
  box-shadow: 0 0 5px rgba(255, 255, 255, 0.4);
}

/* Option styling (limited support) */
.form-select option {
  background-color: transparent !important;
  color: black !important;
}


.phone-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
select{
  padding: 1rem 1.2rem;
  border: 1px solid lightgray;
  border-radius: 1px;
  transition: var(--transition);
  color: var(--text-color);
}
select:focus{
  outline: none;
  border-color: var(--primary-light) !important;
  background-color: white;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background-color: transparent;
}
.phone-container select {
  width: 108px;
}
.form-input::placeholder {
  color: #a7b0d0;
  opacity: 1;
}

.name-fields {
  display: flex;
  gap: 1.5rem;
}

.name-field {
  flex: 1;
  position: relative;
}

.country-select {
  flex: 0 0 140px;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231329a9' stroke='%231329a9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
  border: 1px solid #e0e4f5;
  background-color: var(--light-accent);
}

.phone-input {
  flex: 1;
}

.address-group-three {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.2rem;
}

.address-group-three > div {
  flex: 1;
}

.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.8rem;
}

.radio-item {
  display: flex;
  align-items: center;
  position: relative;
}

.radio-item input {
  margin-right: 0.8rem;
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #d6dcf0;
  border-radius: 50%;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  background-color: white;
}

.radio-item input:checked {
  border-color: white;
  background-color: white;
}

.radio-item input:checked::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 10px;
  height: 10px;
  background-color: darkblue;
  border-radius: 50%;
  transform: scale(1);
  transition: var(--transition);
}

.radio-item label {
  cursor: pointer;
  user-select: none;
  color: white;
  font-weight: 500;
}

.radio-item:hover input {
  border-color: white;
}

.upload-area {
  border: 2px dashed #d6dcf0;
  border-radius: var(--border-radius);
  padding: 4rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  background-color: var(--light-accent);
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: white;
  background-color: rgba(255, 107, 53, 0.05);
  transform: translateY(-2px);
}

.upload-area::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%231329a9' viewBox='0 0 24 24' opacity='0.1'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E") no-repeat center;
  opacity: 0;
  transition: var(--transition);
}

.upload-area:hover::before {
  opacity: 0.3;
}

.upload-area.active {
  border-color: var(--success-color);
  background-color: rgba(76, 175, 80, 0.05);
}

.upload-text {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.upload-subtext {
  font-size: 0.85rem;
  color: var(--secondary-color);
}

.submit-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  padding: 1.2rem 3rem;
  font-size: 1.1rem;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 15px rgba(19, 41, 169, 0.3);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.submit-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(19, 41, 169, 0.4);
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.submit-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: 0.6s;
}

.submit-button:hover::before {
  left: 100%;
}

.submit-button::after {
  content: "→";
  font-size: 1.2rem;
  transition: var(--transition);
  opacity: 0.8;
}

.submit-button:hover::after {
  transform: translateX(5px);
  opacity: 1;
}

/* Popup Modal Styles - MOVED OUT OF MEDIA QUERY */

#popupModal {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease-out;
}

#popupModal.active {
  display: flex !important;
}

#popupModal .modal-content {
  background: #fff;
  border-radius: var(--border-radius);
  max-width: 450px;
  min-width: 280px;
  padding: 2.5rem;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: modalSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

#popupModal .modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Title */
#popupModal .modal-content .modal-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.2rem;
}

/* Description */
#popupModal .modal-content .modal-desc {
  font-size: 1rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Close Button (default) */
#popupModal .modal-content .close-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
  color: white;
  border: none;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(19, 41, 169, 0.2);
  min-width: 120px;
}

#popupModal .modal-content .close-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(19, 41, 169, 0.3);
}

/* Success Button */
#popupModal .modal-content .close-btn.success {
  background: linear-gradient(135deg, #18BD5B, #16AA52);
  box-shadow: 0 4px 15px rgba(24, 189, 91, 0.3);
}

#popupModal .modal-content .close-btn.success:hover {
  background: linear-gradient(135deg, #16AA52, #148A47);
  box-shadow: 0 6px 20px rgba(24, 189, 91, 0.4);
}

/* Error Button */
#popupModal .modal-content .close-btn.error {
  background: linear-gradient(135deg, #DC3545, #C82333);
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

#popupModal .modal-content .close-btn.error:hover {
  background: linear-gradient(135deg, #C82333, #B21E2F);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* === Animations === */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}



/* Responsive Adjustments */
@media (max-width: 768px) {
  .name-fields, .address-group-three {
    flex-direction: column;
    gap: 1.2rem;
  }
  
  .form-container {
    padding: 2rem 1.5rem;
  }
  
  .radio-group {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-section {
    padding: 2rem 0 1.5rem;
  }
  
  .header-section img {
    height: 60px;
  }
}

/* iPhone XS Portrait */
@media only screen 
  and (min-device-width: 375px) 
  and (max-device-width: 375px) 
  and (orientation: portrait) 
  and (-webkit-device-pixel-ratio: 3) {
    
  body {
    background: linear-gradient(135deg, rgba(19, 41, 169, 0.2) 0%, rgba(8, 20, 84, 0.3) 100%),
                url('images/career.jpg') no-repeat center center fixed;
    background-size: cover;
  }
}




#formMessage {
  padding: 1.2rem;
  margin-top: 1.5rem;
  border-radius: var(--border-radius);
  text-align: center;
  display: none;
  font-weight: 500;
}

#formMessage.success {
  background-color: rgba(76, 175, 80, 0.1);
  color: var(--success-color);
  border: 1px solid rgba(76, 175, 80, 0.3);
  display: block;
}

#formMessage.error {
  background-color: rgba(255, 107, 53, 0.1);
  color: var(--dark-accent);
  border: 1px solid rgba(255, 107, 53, 0.3);
  display: block;
}

/* Two Column Layout */
.two-column {
  display: flex;
  gap: 1.5rem;
}

.two-column > div {
  flex: 1;
}

@media (max-width: 576px) {
  .two-column {
    flex-direction: column;
    gap: 1.2rem;
  }
}

/* Job Title Other Field */
#otherJobTitle {
  transition: var(--transition);
}

/* Floating Animation */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(19, 41, 169, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(19, 41, 169, 0); }
  100% { box-shadow: 0 0 0 0 rgba(19, 41, 169, 0); }
}


@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}
