@import url("https://fonts.googleapis.com/css2?family=Beiruti:wght@200..900&display=swap");

/********************************/
/************* Main *************/
/********************************/

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  width: 100%;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  font-family: "Beiruti", serif;
  font-optical-sizing: auto;
  font-style: normal;
}




.contact-form-container{
width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 5rem 8rem;

}


.contact-form-heading{
margin-bottom: 40px;
color: #738598;
display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
  font-size: 20px;
  font-weight: 400;

}
.contact-form-header{
  font-size: 36px;
  font-weight: 400;
  color: #4f9ca5;
  margin-bottom: 5px;

  }

/********************************/
/********* From styling *********/
/********************************/

.rows-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 100%;
}

.row-in-form {
  display: flex;
  flex-direction: row;
  width: 100%;
 gap: 40px; 
}

.input-container {
  position: relative;
  width: 100%;
  padding: 15px 0;
}

/********************************/
/******** Label styling ********/
/********************************/

.label-in-form {
  display: block;
  position: absolute;
  top: 30px;
  left: 10px;
  color: #738598;
  font-size: 18px;
  transition: all 0.3s ease-in-out;
  pointer-events: none; /* Prevent interaction with the label */
}

.textarea-counter {
  transition: all 0.3s ease-in-out;
  pointer-events: none; /* Prevent interaction with the label */
  display: block;
  position: absolute;
  top: 30px;
  right: 10px;
  color: #738598;
  font-size: 14px;
  margin: 0;
}

.Required-Optional {
  font-size: 14px;
  height: 100%;
  position: relative;
  bottom: 5px;
}

/********************************/
/********* Input styling *********/
/********************************/

/* Placeholder color */
.input-box::placeholder {
  color: transparent; /* Hide placeholder */
}

/* Basic input Style */
.input-box {
  background: transparent;
  border: none;
  outline: none;
  border: solid 0px #465a6b;
  border-radius: 5px;
  color: #223142;
  background-color: #f2f5f8;
  transition: all 0.3s ease-in-out;
}

.input-box-small {
  width: 100%;
  height: 50px;
  padding: 0 10px;
  font-size: 16px;
}

.input-box-big {
  width: 100%;
  min-width: 300px;
  min-height: 200px;
  padding: 10px 10px;
  font-size: 16px;
  resize: vertical;
}

/* Move label up when input is focused or has content */
.input-box:focus + .label-in-form,
.input-box:not(:placeholder-shown) + .label-in-form {
  top: -10px;
  left: 0px;
  color: #634d1e;
}

.input-box:focus + .label-in-form + .textarea-counter,
.input-box:not(:placeholder-shown) + .label-in-form + .textarea-counter {
  top: -10px;
  right: 0px;
  color: #634d1e;
}

/* On focus */
.input-box:focus {
  background: #f2ead9;
  color: #322311;
  border: solid 2px #facf59;

  /********************************/
  /********** Valid input **********/
  /********************************/
}

.input-box:valid:not(:focus):not(:placeholder-shown) {
  background: #e7f1f2;
  color: #0f4c4f;
  border: solid 2px transparent;
}

.input-box:valid:not(:focus):not(:placeholder-shown) + .label-in-form {
  color: #4f9ca5;
}

.input-box:valid:not(:focus):not(:placeholder-shown)
  + .label-in-form
  + .textarea-counter {
  color: #4f9ca5;
}

/********************************/
/******** Invalid Input ********/
/********************************/

.input-box:invalid:not(:focus):not(:placeholder-shown) {
  background: #f1e6e7;
  color: #621217;
  border: solid 2px transparent;
}

.input-box:invalid:not(:focus):not(:placeholder-shown) + .label-in-form {
  color: #f05b5b;
}

.input-box.required-error {
  background: #f1e6e7;
  color: #621217;
  border: solid 2px #f05b5b;
}

.input-box:not(:focus).required-error {
  background: #f1e6e7;
  color: #621217;
  border: solid 2px transparent;
}

.input-box.required-error + .label-in-form {
  top: -10px;
  left: 0px;
  color: #f44336;
}

.input-box.required-error + .label-in-form + .textarea-counter {
  color: #f44336;
  top: -10px;
  right: 0px;
}

.warning-msg {
  display: flex;
  align-items: center;
  justify-content: left;
  color: #f05b5b;
  font-size: 14px;
  border-radius: 3px;
  min-height: 25px;
}

.warning-list {
  padding: 0;
  list-style: none;
}

.warning-list li {
  margin: 0;
}

.required-input-msg {
  display: none;
}
.validity-input-msg {
  display: none;
}

/********************************/
/********** Upload App **********/
/********************************/

.wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.box {
  max-width: 100%;
  width: 100%;
  border-radius: 5px;
  height: 100%;
}

.input-bx {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

button{
  font-size: 16px;
  background: transparent;
  border: none;
  outline: none;
  border-radius: 5px;
  color: #ffff;
  background-color: #4f9ca5;
  transition: all 0.3s ease-in-out;
  width: 100%;
  padding: 15px 15px;
  border: solid 2px transparent;
margin: 20px 0;
}


button:hover{
  background-color: #9cc9cc;
  transition: all 0.3s ease-in-out;
  color:#ffff ;
  cursor: pointer;
}

/********************************/
/********** Upload Details **********/
/********************************/

.uploadedfile-wrapper {
  display: flex;
  flex-direction: column;
  padding-bottom: 20px;
}

.upload-details {
  width: 100%;
  display: flex;
  align-items: left;
  justify-content: left;
  flex-direction: column;
  margin: 10px 0;
  color: #738598;
}

.uploaded-files-qty {
  color: #738598;
  margin: 3px 0;
}

.upload-area-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 600;
}

.uploadlabel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 2px dashed #d1dae2;
  cursor: pointer;
  padding: 20px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.uploadlabel span {
  font-size: 70px;
  color: #18a7ff;
}

.upload-icon {
  width: 3rem;
  fill: #738598;
  margin-bottom: 5px;
}

.uploadlabel p {
  color: #738598;
  font-size: 16px;
  width: 100%;
  text-align: center;
}

.showfilebox {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 5px;
  background-color: #eff4f4;
}

.upper-showfilebox {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.upper-showfilebox .left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.upper-showfilebox .left p {
  font-weight: 400;
  font-size: 14px;
  color: #738598;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.filetype {
  color: #738598;
  padding: 5px 5px;
  font-size: 14px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 3px;
}

.right {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  justify-content: flex-end;
  background-color: red;
  border-radius: 50%;
  color: white;
}

.single-file-size {
  font-size: 12px;
  color: #738598;
  white-space: nowrap;
}

.right span {
  color: white;
  width: 20px;
  height: 20px;
  font-size: 20px;
  line-height: 20px;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  cursor: pointer;
  border-radius: 50%;
}

.lower-showfilebox {
  background-color: #000000;
}

.full-progress-bar {
  width: 100%;
  height: 5px;
  background-color: #91d0f7;
  position: relative;
}

.uploaded-progress-bar {
  width: 50%;
  height: 100%;
  background-color: #18a7ff;
}

.Progress-percentage {
  position: absolute;
  top: 50%;
  right: 50%;
  transform: translate(50%, -50%);
}

/********************************/
/******** Upload  Error ********/
/********************************/

.warning-upload-msg {
  display: flex;
  align-items: center;
  justify-content: left;
  color: #f05b5b;
  font-size: 14px;
  border-radius: 3px;
  min-height: 25px;
}

.warning-upload-list {
  padding: 0;
  list-style: none;
}

.warning-upload-list li {
  margin: 0;
}

.required-upload-msg {
  display: none;
  color: blue;
  font-size: 14px;
}

.validity-upload-msg {
  display: none;
  color: pink;
  font-size: 14px;
}

.upload-input.upload-error {
  color: #f05b5b;
}

.uploadlabel.upload-error {
  color: #f05b5b;
  border: dashed 2px #f05b5b;
}

.uploadlabel.upload-error p {
  color: #f05b5b;
  font-weight: bold;
}

.uploadedfile-wrapper.upload-error {  color: #f05b5b;

  
}

.upload-details.upload-error {
  color: #f05b5b;
}

.warning-upload-list.upload-error {
  color: #f05b5b;
  padding: 10px;
  border-radius: 5px;
}

/********************************/
/********** Upload Done **********/
/********************************/

.upload-input.upload-done {
  background: purple;
  color: purple;
  border: solid 2px purple;
  background-color: purple;
}

.uploadlabel.upload-done {
  background: #e7f1f2;
  color: #4f9ca5;
  border: dashed 2px #9cc9cc;
  margin-bottom: 20px;
}

.uploadlabel.upload-done p {
  color: #4f9ca5;
}

.uploadedfile-wrapper.upload-done {
  background-color: yellow;
  padding: 10px 5px;
}

.upload-details.upload-done {
  background-color: blue;
  color: #4f9ca5;
}

/* Media Queries */
/* Desktop */
@media (min-width: 1025px) {
}

/* للأجهزة اللوحية (Tablet) */
@media (max-width: 1024px) and (min-width: 768px) {
}

/* للهواتف (Phone) */
@media (max-width: 767px) {


  .contact-form-container{
      padding: 2.5rem 1rem;
    
    }
    
  .rows-container {
    gap: 0;
  }
  .row-in-form {
    flex-direction: column;
    padding: 0;
    gap: 0;

  }

  .input-container {
    margin: 0;
  }
}
