/* Responsive Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: #FAF9F6; /* Replace white */
    position: relative;
    width: 80%;
    max-width: 500px;
    margin: 10% auto;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    border: 1px solid #888;
}

.modal-content {
    width: 40%;
    margin: 50px auto;
}

.modal-content h2 {
    color: #b10000;
}

.close-btn {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    right: 20px;
    top: 20px;
    cursor: pointer;
    padding: 10px;
    touch-action: manipulation;
}

.close-btn:hover,
.close-btn:focus {
    color: black;
    text-decoration: none;
}

.title {
    font-size: 28px;
    color: #b10000;
    font-weight: 800;
    text-align: center;
}

form {
align-content: center;
}

/* Input Fields */
.input-field {
    position: relative;
    width: 98%;
}

.input-message-field {
    position: relative;
    height: 200px;
    width: 98%;
}

.input-text {
    margin-top: 15px;
    width: 98%;
    outline: none;
    border-radius: 8px;
    height: 45px;
    border: 1.5px solid #929292;
    padding-left: 10px;
}

.input-message-text {
    margin-top: 15px;
    width: 98%;
    outline: none;
    height: 200px;
    border-radius: 8px;
    border: 1.5px solid #929292;
    padding-left: 10px;
}

.input-text:focus {
    border: 1.5px solid #f32d2d;
}

.input-message-text:focus {
    border: 1.5px solid #f32d2d;
}

.input-field .label,
.input-message-field .label {
    position: absolute;
    top: 25px;
    left: 15px;
    color: #ccc;
    transition: all 0.3s ease;
    pointer-events: none;
    background-color: #FAF9F6; /* Replace white */
}

.input-field .input-text:focus ~ .label,
.input-field .input-text:valid ~ .label,
.input-message-field .input-message-text:focus ~ .label,
.input-message-field .input-message-text:valid ~ .label {
    top: 5px;
    left: 5px;
    font-size: 12px;
    color: #f32d2d;
    background-color: #FAF9F6; /* Replace white */
    padding: 0 5px;
}

/* Specific styles for input fields within the modal */
.modal .input-field .input-text {
padding: 0px 10px;
    border: 1.5px solid #929292; /* Override the border */
    border-radius: 8px; /* Override the border-radius */
}

input[type="text"] {
    padding-left: 35px;
    border: 1px solid #ccc; 
    border-radius: 50px; 
    padding-top: 0px;
    padding-bottom: 0px;
}

/* Division Dropdown */
.dropdown-select {
    width: 100%;
    margin-bottom: 15px;
}

.dropdown-select label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #555;
}

.dropdown-select select {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
}

/* Submit Button */
.submit-btn {
    font-size: 18px;
    font-weight: 700;
    margin-top: 30px;
    padding: 10px 80px;
    background: linear-gradient(180deg, #b10000 0%, #b10000 100%);
    border-radius: 11px;
    border: none;
    color: #FAF9F6; /* Replace white */
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    box-shadow: 0px 0px 0px 2px #FAF9F6, 0px 0px 0px 4px #b10000;
}


.custum-file-upload {
    margin: 10px auto;
    height: 100px;
    width: 150px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cacaca;
    background-color: rgba(255, 255, 255, 1);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0px 48px 35px -48px rgba(0,0,0,0.1);
  }
  
  .custum-file-upload .icon {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .custum-file-upload .icon svg {
    height: 40px;
    fill: rgba(75, 85, 99, 1);
  }
  
  .custum-file-upload .text {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .custum-file-upload .text span {
    font-weight: 200;
    color: rgba(75, 85, 99, 1);
  }
  
  .custum-file-upload input {
    display: none;
  }

form button {
    background-color: #b10000;
    color: white;
    border-radius: 10px;
    border: none;
    padding: 10px 20px;
    margin-top: 50px;
    cursor: pointer;
}

form button:hover {
    background-color: #660000;
}