/* Import Google font - Poppins */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  --main-blue: #71b7e6;
  --main-purple: #9b59b6;
  --main-grey: #ccc;
  --sub-grey: #d9d9d9;
}

.logo {
    position: absolute;
    top: 10px;
    left: 10px;
}

.logo img{
    border-radius: 7.5px;
}

.error-message {
    color: red;
    font-size: small; /* Or any styling you prefer */
}

.error-highlight {
    border: 2px solid #ffe6e6;
    background-color: #ffe6e6;
}

select.error-highlight {
    border: 2px solid #ff4d4f;
    background-color: #ffe6e6;
}

/* Special handling for select elements to ensure consistent appearance */
select.error-highlight {
    -webkit-appearance: none;  /* Forcing consistent styling */
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, gray 50%), 
                      linear-gradient(135deg, gray 50%, transparent 50%);
    background-position: calc(100% - 20px) calc(1em + 2px), calc(100% - 15px) calc(1em + 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

/* Toast notification for error messages */
.toast-error {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #ff4d4d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

/* Display the toast */
.toast-error.show {
    opacity: 1;
}

/* Error Highlight Animation */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(5px); }
    50% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
    100% { transform: translateX(0); }
}

.input-field.error-highlight {
    border: 2px solid #ff4444 !important;
    animation: shake 0.5s ease;
}

.input-field.error-highlight:after {
    content: "⚠";
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #ff4444;
}

.loader {
    display: none;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    flex-direction: column; /* Stack bar and text vertically */
}

.progress-bar {
    width: 0%;
    height: 10px;
    background-color: #4caf50;
    border-radius: 5px;
    transition: width 0.3s;
    margin-bottom: 10px;
}

.progress-text {
    color: white;
    font-size: 14px;
}

html, body {
  height: 100%; /* Important: Ensure both html and body are 100% height */
  margin: 0;
  padding: 0;
}

body {
  background: linear-gradient(135deg, var(--main-blue), var(--main-purple));
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  /* Add padding to the bottom of the body */
  padding-bottom: 10px; /* Or any value you prefer */
  padding: 10px; /* You can keep this padding for the content inside the body */
}

.content-wrapper { /* New wrapper for content and padding */
  display: flex;
  flex-direction: column;
  align-items: center;  /* Center horizontally */
  flex-grow: 1;        /* Allow content to expand */
  padding-bottom: 10px; /* Consistent bottom padding */
}

.content-wrapper-thanks .container {
    width: 800px; /* Your desired fixed width */
    max-width: 1200px; /* Optional: Maximum width for larger screens */
    margin: 0 auto; /* Center horizontally */
    padding: 20px;
}

.container {
  max-width: 715px;
  width: 100%;
  background: #fff;
  padding: 25px;
  border-radius: 5px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.error{
    text-align: center;
}

.container .title {
  font-size: 22px;
  font-weight: 500;
  position: relative;
}

.container .title::before {
  content: "";
  position: absolute;
  height: 3.5px;
  width: 30px;
  background: linear-gradient(135deg, var(--main-blue), var(--main-purple));
  left: 0;
  bottom: 0;
}

.container .form {
  margin-top: 10px;
}

.message{
    margin-top: 20px;
}
.form .input-box {
  width: 100%;
  margin-top: 6px;
}
.input-box label {
  color: #333;
}

.header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
    position: relative;
}

.title {
    flex-grow: 1;
    margin-top: 20px; /* Adjust as needed */
    padding-right: 0;
}

.logout {
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    padding: 10px;
}

.logout a {
    text-decoration: none; /* Removes underline */
}

.form :where(.input-box input, .select-box) {
  position: relative;
  height: 36px;
  width: 100%;
  outline: none;
  font-size:14px;
  color: #707070;
  margin-top: 1px;
  border: 1px solid #ddd;
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0 15px;
  margin-bottom: 8px;
}

.input-box input:focus {
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.rep-text{
    color: #FF0000;
    font-weight: bold;
}

label {
    
  font-size: 15px;
  font-weight: 500;
  position: relative;
}

.form :where(.input-box textarea) { 
    height: 80px;
	width: 100%;
    outline: none;
    border-radius: 5px;
    border: 1px solid var(--main-grey);
    padding-left: 15px;
    font-size: 14px;
    border-bottom-width: 2px;
    transition: all 0.3s ease;
}

.form .column {
  display: flex;
  column-gap: 20px;
}


/* inside the form gender details */
form .gender__details .gender__title {
  font-size: 18px;
  font-weight: 500;
}

form .gender__details .category {
  display: flex;
  width: 24%;
  margin: 10px 0;
  justify-content: space-between;
}

.gender__details .category label {
  display: flex;
  align-items: center;
}

.gender__details .category .dot {
  height: 18px;
  width: 18px;
  background:#d9d9d9;
  border-radius: 50%;
  margin: 6px;
  border: 5px solid transparent;
  transition: all 0.3s ease;
}

#dot-1:checked ~ .category .one,
#dot-2:checked ~ .category .two,
#dot-3:checked ~ .category .three {
  border-color:#d9d9d9;
  background:#9b59b6;
}

form input[type="radio"] {
  display: none;
}


.address :where(input, .select-box) {
  margin-bottom: 10px;
}
.select-box select {
  height: 100%;
  width: 100%;
  outline: none;
  border: none;
  color: #707070;
  font-size: 1rem;
}
/* submit button */
form .button {
  height: 45px;
  margin: 10px 0 0 0;
}

form .button input {
  height: 86%;
  width: 100%;
  outline: none;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--main-blue), var(--main-purple));
  transition: all 0.3s ease;
}

form .button input:hover {
  background: linear-gradient(-135deg, var(--main-blue), var(--main-purple));
}

.app__upload-label {
    padding: 6px 15px;
    display: inline-block;
    text-align: center;
}

/* thank you page design */


.thank-page-template{background-color: #f2f2f2;}
.thank-you-wrapper{position: relative; height: 100%; }
.thank-you-wrapper > .container{width:580px; margin:0 auto;}
.thank-you-wrapper{text-align: center;}
.thank-you-page-content{position: relative; float:left; width: 100%; background: #f2f2f2; padding:50px; margin:30px 0;box-sizing: border-box;}
.thank-you-page-content::before,
.thank-you-page-content::after { z-index: -1; position: absolute; content: ""; bottom: 15px; left: 10px; width: 50%; top: 80%; max-width: 300px; background: #777; -webkit-box-shadow: 0 15px 10px #777; -moz-box-shadow: 0 15px 10px #777; box-shadow: 0 15px 10px #777; -webkit-transform: rotate(-3deg); -moz-transform: rotate(-3deg); -o-transform: rotate(-3deg); -ms-transform: rotate(-3deg); transform: rotate(-3deg);}
.thank-you-page-content::after { -webkit-transform: rotate(3deg); -moz-transform: rotate(3deg); -o-transform: rotate(3deg); -ms-transform: rotate(3deg); transform: rotate(3deg); right: 10px; left: auto;}
html body .thank-you-wrapper .container{display: table; height: 100%;}
html body .thank-you-wrapper .container > .row{display: table-cell; height: 100%; vertical-align: middle;}

.thank-you-copy p{margin: 0; padding: 0; font-size: 12px;}
.thank-you-page-content h1{position: relative; width: 100%; float: left; margin-bottom: 30px; padding-top: 110px; font-size: 26px; font-weight: 200; line-height: 28px;}
.thank-you-page-content h1::before { content: "\f00c"; top: 0; transform: translateX(-50%); -webkit-transform: translateX(-50%); -ms-transform: translateX(-50%); left: 50%; position: absolute; font-family: "FontAwesome"; font-size:60px; text-align: center; float: left; width: 100px; color: #9b59b6; height: 100px; text-align: center; line-height: 100px; border: 2px solid #9b59b6;  border-radius:100%;  -webkit-border-radius:100%; -ms-border-radius:100%;}
.thank-you-page-content .btn{padding-top:13px; padding-bottom:13px; padding-right: 25px;}

/* submit button */
.button {
  height: 45px;
  margin: 10px 0;
}
.button input {
  height: 86%;
  width: 100%;
  outline: none;
  color: #fff;
  border: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 5px;
  background: linear-gradient(135deg, var(--main-blue), var(--main-purple));
  transition: all 0.3s ease;
}
.button input:hover {
  background: linear-gradient(-135deg, var(--main-blue), var(--main-purple));
}
/* In your style.css file */
.input__box .input-field { /* Or target the textarea directly: #userMessage */
    width: 100%;
    box-sizing: border-box; /* Important: Include padding and border in the width */
}

.input__box textarea {
    width: 100%;
    height: 80px;
    outline: none;
    font-size: 14px;
    color: #707070;
    border: 1px solid #ddd;
    border-bottom-width: 2px;
    border-radius: 6px;
    padding: 10px 15px;
    resize: none;
    overflow-y: auto;
}

.gender__details .category label {
    display: flex;
    align-items: center;
    min-height: 30px;
    cursor: pointer;
    position: relative;
}

.gender__details .category .dot {
    height: 18px;
    width: 18px;
    background-color: #d9d9d9;
    border-radius: 50%;
    margin-right: 6px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.gender__details .category input[type="radio"] {
    display: none;
}

.gender__details .category .gender-option {
    display: flex;
    align-items: center;
}

.gender__details .category .dot.checked { /* Style for checked state */
    background-color: var(--main-purple);
    border-color: transparent;
}

.gender__details .category .dot.checked::before { /* Inner circle */
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.gender-option input[type="radio"]:checked + label .dot {
  background: #9b59b6;  /* Change to your desired checked color */
  border-color: transparent; /* Optional: remove border if needed */
}

.gender-option input[type="radio"]:checked + label .dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: white;
}

textarea {
    max-height: 150px;
    overflow-y: auto;
}

.invoice-amount-section {
    background-color: rgba(245, 245, 245, 0.8); /* Light gray with 50% opacity */
    padding: 10px;
    margin-bottom: 7px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.invoice-amount-section .column { /* Target columns within the section */
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    /*gap: 20px;*/
}

.invoice-amount-section label { /* Styles for labels within the section */
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 5px; /* Add some space below the label */
    display: block; /* Ensure labels are on their own line */
}

.invoice-amount-section .input-box { /* Style the input boxes */
    width: calc(100% - 5px); /* Adjust width for two columns with gap */
    box-sizing: border-box; /* Include padding and border in width */
}

/*Responsive*/

/* Media query for screens smaller than 900px */
@media (max-width: 900px) {
    .content-wrapper-thanks .container {
        width: 90%; /* Switch to percentage width for smaller screens */
        max-width: none; /* remove max-width */
    }
}

/* Media query for screens smaller than 600px */
@media (max-width: 600px) {
    .content-wrapper-thanks .container {
        width: 95%; /* Make it even wider on smaller screens */
        padding: 15px; /* Adjust padding for smaller screens */
    }
    .logout-text {
        display: none; /* Hide text */
    }

    .logout i {
        display: inline; /* Show icon */
    }
}

.welcome-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: linear-gradient(135deg, var(--main-blue), var(--main-purple));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    z-index: 9999;
}

@media screen and (max-width: 500px) {
  .form .column {flex-wrap: wrap;}
  .form :where(.gender-option, .gender) {row-gap: 15px;}
}

/* Media query for even smaller screens (phones) */
@media (max-width: 480px) {
    .content-wrapper-thanks .container {
        width: 100%; /* Take up the full width on very small screens */
        padding: 10px; /* Further adjust padding */
    }
}

/* Show only the icon on mobile */
@media screen and (max-width: 600px) {
    .logout-text {
        display: none; /* Hide text on mobile */
    }

    .logout i {
        display: inline; /* Show icon */
    }
    
    .welcome-banner {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .welcome-banner .logo {
        margin-bottom: 10px;
    }

    .welcome-banner h1 {
        font-size: 1.5rem;
        text-align: center;
    }
}

/* Show only the text on desktop */
@media screen and (min-width: 601px) {
    .logout-text {
        display: inline; /* Show text on desktop */
    }

    .logout i {
        display: none; /* Hide icon on desktop */
    }
}

@media screen and (max-width: 768px) {
    .container {
        width: 90%;
        padding: 20px;
    }
    
    .logo {
        position: static;
        margin: 10px 0;
        display: block;
        text-align: center;
    }
    
    .logo img {
        height: 50px;
        max-width: 100%;
        object-fit: contain;
    }
    
    .content-wrapper-thanks .container {
        width: 95%; /* Make the container wider on smaller screens */
        padding: 15px; /* Adjust padding for smaller screens */
    }
    
    .column {
        flex-direction: column;
        /*gap: 10px;*/
    }

    .gender__details .category {
        width: 100%;
        justify-content: space-around;
    }
    
    .invoice-amount-section .input-box {
        width: 100%; /* Full width on smaller screens */
        margin-bottom: 10px;
    }
}