#terms-analyzer {
    max-width: 100%;
    margin: 60px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
    #terms-analyzer {
        margin: 30px auto;
    }
}

@media (max-width: 768px) {
    #terms-analyzer {
        margin: 10px auto;
    }
}

#terms-analyzer-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.form-group {
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.file-label, .email-label {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #333;
}

.file-input, .email-input {
    width: 100%;
    max-width: 600px;
    padding: 12px !important;
    font-size: 1rem !important;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease !important;
    background-color: #f9f9f9 !important;
}

.file-input:focus, .email-input:focus {
    border-color: #0A5D23;
    box-shadow: 0 0 5px rgba(10, 93, 35, 0.5);
}

.email-input:invalid {
    border-color: red;
    box-shadow: 0 0 5px rgba(255, 0, 0, 0.5);
}

.email-input:valid {
    border-color: #0A5D23;
    box-shadow: 0 0 5px rgba(10, 93, 35, 0.5);
}

/* Custom File Icon Styles */
.file-icon {
    cursor: pointer;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.custom-file-icon {
    margin-top: 15px;
    width: 120px;
    height: 120px;
}

.file-icon:hover .custom-file-icon {
    transform: scale(1.1);
}

#contract_file {
    display: none; /* Hiding the default file input */
}

.selected-file {
    margin-top: 10px;
    font-size: 1rem;
    color: #333;
}



/* Button Styling */
.analyze-btn {
    background-color: #0A5D23 !important;
    color: #fff !important;
    border: none !important;
    padding: 15px 25px !important;
    border-radius: 50px !important;
    font-size: 1.1rem !important;
    font-weight: 500 !important;
    cursor: pointer !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    transition: background-color 0.3s ease, box-shadow 0.3s ease !important;
}

.analyze-btn:hover {
    background-color: #07461B !important;
    box-shadow: 0 6px 12px rgba(7, 70, 27, 0.4) !important;
}

#terms-analyzer-result {
    display: none;
    margin-top: 20px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    line-height: 1.5;
    color: #000;
}

.loader {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0A5D23;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#terms-analyzer-result.error {
    color: red;
}

#terms-analyzer-result.success {
    color: #000;
}

