@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');   
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* background: linear-gradient(135deg, #581c87 0%, #1e3a8a 50%, #581c87 100%); */
    background-color: black;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* font-family: ; */
    font-family: 'Roboto', sans-serif;
    /* padding: 16px; */
}
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0,0,0,0.7);
  padding: 30px;
}

.modal-content {
            background-color: #111;
            color: white;
            margin: 54px auto;
            padding: 35px;
            border: 1px solid #888;
            width: 65%;
            height: 93%;
            border-radius: 8px;
            position: relative;
            overflow: hidden;
    
}
.modal-content h2{
    font-size: 22px;
}

.close {
  color: #fce45e;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.poster{
    height: 20%;
    width: 100%;
    object-fit: cover;     /* keeps aspect ratio */
    clip-path: ellipse(100% 95% at 50% 0%);
}

.container {
    width: 100%;
    max-width: 448px;
}

.logo-section {
    text-align: center;
    margin-bottom: 20px;
    margin-top: 20px;
}

.logo-placeholder {
    background: linear-gradient(135deg, #fbbf24, #f59e0b, #d97706);
    color: #581c87;
    font-size: 18px;
    font-weight: bold;
    padding: 16px 32px;
    border-radius: 10px;
    margin: 0 auto 16px;
    width: fit-content;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

.logo-section h1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    line-height: 1.3;
}

.subtitle {
    color: #ffdd1a;
    font-size: 16px;
}

.form-container {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    /* border-radius: 24px; */
    padding: 24px;
    /* border: 1px solid rgba(168, 85, 247, 0.3); */
}


.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    /* margin-bottom: 16px; */
}
.mobile-form-group{
display: flex;
}
.countryCodeFor_Mobile{
    width:50%;
    padding-right: 12px;
    
}
#countryCodeForMobile{
   padding: 7px;
    height: 43px;
    font-size: 15px;
}
.mobile-input-wrapper{
    width: 100%;
}
#mobile_noError{
    right: 0;
}

input, select, textarea {
    width: 100%;
    padding: 12px 16px;
    background-color: #323232B3;
    border: 1px solid #fff;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    transition: border-color 0.2s ease;
}


input::placeholder,
textarea::placeholder {
    color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #fce45e;
}

/* dropdown */
select option {
  background: #272727;   /* dropdown bg */
  /* color: white; */
  border: 1px solid red;
}
/* dropdown css */
select {
  appearance: none;         /* Removes OS default styling */
  -webkit-appearance: none; /* Safari/Chrome */
  -moz-appearance: none;    /* Firefox */
  cursor: pointer;
  /* opacity: 70%; */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 640'><path fill='white' d='M199 305C189.6 295.6 189.6 280.4 199 271.1C208.4 261.8 223.6 261.7 232.9 271.1L319.9 358.1L406.9 271.1C416.3 261.7 431.5 261.7 440.8 271.1C450.1 280.5 450.2 295.7 440.8 305L337 409C327.6 418.4 312.4 418.4 303.1 409L199 305z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 6px center;
  background-size: 25px 25px;
}

/*  
select option:hover {
  background: #323232B3;
} */
/* dropdown */

textarea {
    resize: none;
    font-family: inherit;
}

.error-message {
  color: red;
  font-size: 12px;
  margin-top: 4px;
  display: block; /* must be visible */
}


.submit-btn {
    width: 100%;
    /* background: linear-gradient(to right, #9333ea, #ec4899); */
    background-color: white;
    color: black;
    font-weight: 600;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: scale(1);
}
/* 
.submit-btn:hover {
    background: linear-gradient(to right, #7c3aed, #db2777);
    background-color: white;
    color: #A80929;
    transform: scale(1.02);
} */

/* .submit-btn:focus {
    outline: 2px solid #fce45e;
    outline-offset: 2px;
} */

/* File Upload */
.file-upload-area {
    border: 2px dashed #d1d5db;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.file-upload-area:hover {
    border-color: #fce45e;
    background: rgba(102, 126, 234, 0.05);
}

.file-upload-area.error {
    border-color: red !important;
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1rem;
    font-weight: 500;
    color: #fce45e;
    margin-bottom: 8px;
    display: flex;
    justify-content: center;
}

.upload-subtext {
    font-size: 0.9rem;
    color: white;
}

.upload-success {
    padding: 20px;
    /* background: #f0fdf4; */
    border-radius: 8px;
    overflow-wrap: break-word;
}

.edit_icon{
    position: absolute;
    top : 8%;
    right: 3%;
}

.success-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.file-name {
    font-weight: 500;
    color: #FFDD1A;
    margin-bottom: 5px;
}

.file-size {
    font-size: 0.9rem;
    color: #6b7280;
}

input[type="file"].error {
  border: 1px solid red;
}

/* Checkbox */
.checkbox-group {
    margin-top: 10px;
    display: flex;
    align-items: center;
}



.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    position: relative;
    padding-left: 35px;
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    background-color: #fff;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.checkbox-label:hover input ~ .checkmark {
    border-color: #fce45e;
}

.checkbox-label input:checked ~ .checkmark {
    /* background: linear-gradient(135deg, #37e36e 0%, #764ba2 100%); */
    background-color: #fce45e;
    border-color: #fce45e;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    left: 5px;
    top: 0px;
    width: 6px;
    height: 12px;
    border: solid black;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label input:checked ~ .checkmark:after {
    display: block;
}

.checkbox-text {
    color: #ffffff;
    font-size: 1rem;
}

.checkbox-text small {
    display: block;
    color: #6b7280;
    font-size: 0.8rem;
    margin-top: 4px;
}

.submit-terms{
    color: #6b7280;
}

input.error,
select.error {
  border: 1px solid red;
}


.checkbox-label input.error ~ .checkmark {
  border-color: red;
}

.success{
    object-fit: cover;
    margin-top: 30px;
    margin-bottom: 30px;
}


.success-btn {
    background-color: white;
    color: black;
    font-weight: 700;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    transform: scale(1);
    width: 60%;
    margin-top: 20px;
}

/* error popup */
/* Overlay wrapper */
.popup-overlay {
  position: fixed;
  inset: 0; 
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

/* Dark background */
.popup-backdrop {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0.5;
  z-index: 1; 
}

/* Popup box */
.popup-content {
  background: #272727; /* gray-800 */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  padding: 24px;
  z-index: 2;
  width: 100%;
  max-width: 600px; /* adjusts for responsiveness */
  margin: 0 16px;
}

/* Message */
.popup-message {
  color: white;
  text-align: center;
  margin: 16px;
}

/* Actions */
.popup-actions {
  display: flex;
  justify-content: center;
}

/* Button */
.popup-btn {
  width: 160px;
  padding: 12px;
  border: none;
  border-radius: 10px; /* full rounded */
  background: #ffffff; /* red-700 */
  color: black;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  margin: 16px;
  font-weight: bold;
}

.text_desk{
    display: block;
}


/* Mobile specific adjustments */
@media (max-width: 768px) {

    .form-row {
        display: contents;
        gap: 16px;
    }
    .container {
        max-width: 100%;
    }
    
    .form-container {
        padding: 15px;
    }
    
    .logo-section h1 {
        font-size: 20px;
    }

    .subtitle {
        font-size: 18px;
    }
    
    input, select, textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    body{
        padding: 0px;
    }
    .loader-overlay{
        display: flex;
        flex-direction: column;
    }

    .popup-message{
        font-size: medium;
    }
    .modal-content {
            background-color: #111;
            color: white;
            margin: 54px auto;
            padding: 10px;
            border: 1px solid #888;
            width: 100%;
            height: 93%;
            border-radius: 8px;
            position: relative;
            overflow: hidden;
    
}
.modal-content h2{
    font-size: 18px;
}

}

/* Additional responsive adjustments */
@media (max-width: 480px) {
    .form-row {
        /* grid-template-columns: 1fr; */
        display: contents;
        gap: 16px;
    }
    
    .logo-placeholder {
        font-size: 16px;
        padding: 12px 24px;
    }
       body{
        padding: 0px;
    }

    .popup-message{
        font-size: medium;
    }
        .countryCodeFor_Mobile{
    width:50%;
    
}
}



/* Desktop (large screens) */
@media (min-width: 1024px) {
.container{
    max-width: 100%;
}
    .desktop_section {
        width: 50%;
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 1rem;
    }
 
  .poster {
    content: url("./images/sunsinger.jpg"); /* change image */
    height: 20%;  
    width: 100%;
    object-fit: cover;
    clip-path: ellipse(100% 95% at 50% 0%);
  }

  .logo-section{
    display: flex;
    flex-direction: column;
    align-items: center;
  }

.logo-section h1 {
    font-size: 30px;
}
.logo-section p {
    font-size: 20px;
}

/* .desktop_form{
    display: flex;
    justify-content: space-between;
    margin: 0% 20%;
} */
     .desktop_form {
        display: flex;
        justify-content: space-between;
        margin: auto;
        width: 75%;
    }

/* .desktop_section {
  width: 40%;
  display: flex;
  flex-direction: column;
  gap: 1rem; 
} */
  .desktop_section {
        width: 50%;
        display: flex;
        flex-direction: column;
        padding: 10px;
        gap: 1rem;
    }

.form-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.submit-btn {
    width: 30% !important;
}

.success-btn{
    width: 30% !important;
}


.form-row .form-group{
    width: 15rem;
}
.btn_desk{
    display: flex;
    justify-content: center;
}
.text_desk{
    display: block;
}


.loader-overlay {
    display: flex;
    flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #fce45e; 
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}
}



@media (min-width: 1400px) {
    .countryCodeFor_Mobile {
    width: 35%;
}
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
@media(min-width:748px) and (max-width:968px){
    .countryCodeFor_Mobile{
    width:45%;
    
}
.form-row{
    display: contents;
}
.desktop_form{
  
    margin: auto;
     width: 100%;
}
}
@media(min-width:1445px) and (max-width: 1600px) {
      .desktop_form {
        display: flex;
        justify-content: space-between;
        margin: auto;
         width: 65%;

    }
    .desktop_section {
        width: 45%;}

    .countryCodeFor_Mobile{
    width:44%;
    
}
 
}
@media (max-width:600px){
    .countryCodeFor_Mobile{
    width:47%;
    
}
}

@media (max-width: 360px){
    .countryCodeFor_Mobile{
    width:62%;
    
}
 #countryCodeForMobile{
    font-size: 14px;
 }
}

select:invalid {
  /* color:  white; */
  opacity: 60%;
  background-color: rgb(67, 66, 66);
border: 2px solid #fff;

}

select option {
  color: white;
}

select option:disabled {
  color:  white;
  opacity: 60%;
  

}
select {
  color: rgb(251, 251, 251);
}

.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.spinner {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #fce45e; 
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
}

/* Language Toggle */
.lang-toggle-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.lang-label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.lang-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  margin-bottom: 0;
  cursor: pointer;
}

.lang-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.lang-slider {
  position: absolute;
  inset: 0;
  background-color: #555;
  border-radius: 24px;
  transition: background-color 0.3s;
  border: none;
}

.lang-slider::before {
  content: "";
  position: absolute;
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.3s;
}

.lang-toggle input:checked ~ .lang-slider {
  background-color: #fce45e;
}

.lang-toggle input:checked ~ .lang-slider::before {
  transform: translateX(20px);
}

#langLabelEn, #langLabelTa {
  transition: color 0.2s;
}

#errorPageMsg{
    font-size: 32px;
}