
/* Importing font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Namespace the styles by wrapping them in a .custom-form class */
.custom-form {
    margin-top: 100px;
    margin-left: 20%;
}

/* Ensure no global styles are affected by adding specific selectors */
.custom-form * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.custom-form body {
    font-family: "Inter", sans-serif;
    background-color: #f4f7fc;
    padding: 40px;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.custom-form .container {
    max-width: 1000px;
    width: 100%;
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0px 15px 25px rgba(0, 0, 0, 0.1);
}

.custom-form h2 {
    text-align: center;
    color: #07074D;
    margin-bottom: 30px;
    margin-top: 50px;
}

/* Form Layout Styling */
.custom-form form {
    display: flex;
    flex-direction: column;
    margin-top: 50px;
}

.custom-form .row {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

/* Modify the row to have 3 columns */
.custom-form .column {
    width: 33.33%; /* Makes 3 fields per row */
    max-width: 33.33%;
}

.custom-form .form-control {
    width: 100%;
    padding: 13px 22px;
    border-radius: 5px;
    border: 1px solid #DDE3EC;
    background: #FFFFFF;
    font-weight: 500;
    font-size: 20px;
    color: #536387;
    outline: none;
    resize: none;
}

.custom-form .form-control:focus {
    border-color: #6a64f1;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}

/* Label Styling */
.custom-form label {
    color: #07074D;
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    display: block;
    margin-bottom: 10px;
}

/* Submit Button Styling */
.custom-form button[type="submit"] {
    background-color: #6A64F1;
    color: white;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 20px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    width: 500px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.custom-form button[type="submit"]:hover {
    background-color: #4a48c3;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.1);
}

/* Alert Message Styling */
.custom-form .alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
    font-weight: bold;
}

.custom-form .success {
    background-color: #d4edda;
    color: #155724;
}

.custom-form .error {
    background-color: #f8d7da;
    color: #721c24;
}

/* Pending Amount Styling */
.custom-form #pending_amount {
    background-color: #f0f0f0;
    cursor: not-allowed;
    font-weight: bold;
}

/* Responsive Styles */
.custom-form @media (max-width: 768px) {
    .custom-form .column {
        width: 100%;
        max-width: 100%;
    }
    .custom-form button[type="submit"] {
        width: 100%;
    }
    .custom-form .container {
        padding: 20px;
    }
    .custom-form h2 {
        font-size: 24px;
    }
}

/* Input Focus and Transition */
.custom-form input:focus, 
.custom-form select:focus, 
.custom-form textarea:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(105, 91, 241, 0.5);
    border-color: #6a64f1;
}

/* Add margin below form for visual spacing */
.custom-form form {
    margin-bottom: 20px;
}

/* Style for the Pending Amount Field */
.custom-form #pending_amount {
    font-weight: bold;
    background-color: #f0f0f0;
    cursor: not-allowed;
}
/* Larger Pending Amount Display */
.pending-amount {
    text-align: right;
    margin-top: 20px;
    margin-right: 15%;
    font-size: 30px;
}

/* Adjust the Due Date input styling */
#due_date {
    width: 100%;
    padding: 13px 22px;
    border-radius: 5px;
    border: 1px solid #DDE3EC;
    background: #FFFFFF;
    font-weight: 500;
    font-size: 20px;
    color: #536387;
    outline: none;
    resize: none;
}

#due_date:focus {
    border-color: #6a64f1;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.05);
}
 .text {
        width: 920px; /* or set a fixed width like 500px */
        height: 100px; /* or adjust to the desired height */
        resize: both; /* allows resizing of the textarea */
    }
